git ssb

0+

Piet / ssb-loomio



Commit b1794feaa06398b355861bf247975bf7501e5910

Caps on factory functions

Piet Geursen committed on 3/8/2018, 3:28:09 AM
Parent: c86fc504a04ac3e334970e63650f800d6ad19401

Files changed

test/errors/sync/index.test.jschanged
test/errors/sync/index.test.jsView
@@ -3,9 +3,9 @@
33 const isPositionChoiceError = require('../../../errors/sync/isPositionChoiceError')()
44 const isPositionLateError = require('../../../errors/sync/isPositionLateError')()
55 const isPositionTypeError = require('../../../errors/sync/isPositionTypeError')()
66
7-const positionTypeError = require('../../../errors/sync/positionTypeError')
7+const PositionTypeError = require('../../../errors/sync/positionTypeError')
88 const PositionLateError = require('../../../errors/sync/positionLateError')
99 const PositionChoiceError = require('../../../errors/sync/positionChoiceError')
1010
1111 const ChooseOne = require('../../../position/sync/chooseOne')
@@ -14,12 +14,12 @@
1414 var validPosition = ChooseOne({
1515 poll: '%t+PhrNxxXkw/jMo6mnwUWfFjJapoPWxzsQoe0Np+nYw=.sha256',
1616 choice: 0
1717 })
18- var invalidError = positionTypeError({})
18+ var invalidError = PositionTypeError({})
1919 t.false(isPositionTypeError(invalidError), 'catches invalid error')
2020
21- var validError = positionTypeError({position: validPosition})
21+ var validError = PositionTypeError({position: validPosition})
2222 t.true(isPositionTypeError(validError), 'validates valid error')
2323 t.end()
2424 })
2525

Built with git-ssb-web