git ssb

0+

Piet / ssb-loomio



Commit a9066ada5725359824ce7bca9e5007251109f74c

adds tests for all voters.

Piet Geursen committed on 3/6/2018, 2:06:34 AM
Parent: ce8b1f502c50ad9ecb347788c29a659aca0e0be4

Files changed

test/position/sync/chooseOneResults.test.jschanged
test/position/sync/chooseOneResults.test.jsView
@@ -22,9 +22,11 @@
2222 { value: { content: Position(ChooseOne({choice: 2, poll})), author: sallyId } }
2323 ]
2424
2525 const actual = chooseOneResults({positions})
26- t.deepEqual(actual[0], [pietId, mixId, mikeyId])
26+ t.deepEqual(actual[0], [pietId, mixId, mikeyId], 'correct voters for choice 0')
27+ t.deepEqual(actual[1], [timmyId, tommyId], 'correct voters for choice 1')
28+ t.deepEqual(actual[2], [sallyId], 'correct voters for choice 2')
2729 t.end()
2830 })
2931
3032 test.skip('Position - A position stated after the closing time of the poll is not counted', function(t) {

Built with git-ssb-web