Commit b1794feaa06398b355861bf247975bf7501e5910
Caps on factory functions
Piet Geursen committed on 3/8/2018, 3:28:09 AMParent: c86fc504a04ac3e334970e63650f800d6ad19401
Files changed
test/errors/sync/index.test.js | changed |
test/errors/sync/index.test.js | ||
---|---|---|
@@ -3,9 +3,9 @@ | ||
3 | 3 | const isPositionChoiceError = require('../../../errors/sync/isPositionChoiceError')() |
4 | 4 | const isPositionLateError = require('../../../errors/sync/isPositionLateError')() |
5 | 5 | const isPositionTypeError = require('../../../errors/sync/isPositionTypeError')() |
6 | 6 | |
7 | -const positionTypeError = require('../../../errors/sync/positionTypeError') | |
7 | +const PositionTypeError = require('../../../errors/sync/positionTypeError') | |
8 | 8 | const PositionLateError = require('../../../errors/sync/positionLateError') |
9 | 9 | const PositionChoiceError = require('../../../errors/sync/positionChoiceError') |
10 | 10 | |
11 | 11 | const ChooseOne = require('../../../position/sync/chooseOne') |
@@ -14,12 +14,12 @@ | ||
14 | 14 | var validPosition = ChooseOne({ |
15 | 15 | poll: '%t+PhrNxxXkw/jMo6mnwUWfFjJapoPWxzsQoe0Np+nYw=.sha256', |
16 | 16 | choice: 0 |
17 | 17 | }) |
18 | - var invalidError = positionTypeError({}) | |
18 | + var invalidError = PositionTypeError({}) | |
19 | 19 | t.false(isPositionTypeError(invalidError), 'catches invalid error') |
20 | 20 | |
21 | - var validError = positionTypeError({position: validPosition}) | |
21 | + var validError = PositionTypeError({position: validPosition}) | |
22 | 22 | t.true(isPositionTypeError(validError), 'validates valid error') |
23 | 23 | t.end() |
24 | 24 | }) |
25 | 25 |
Built with git-ssb-web