Commit a9066ada5725359824ce7bca9e5007251109f74c
adds tests for all voters.
Piet Geursen committed on 3/6/2018, 2:06:34 AMParent: ce8b1f502c50ad9ecb347788c29a659aca0e0be4
Files changed
test/position/sync/chooseOneResults.test.js | changed |
test/position/sync/chooseOneResults.test.js | ||
---|---|---|
@@ -22,9 +22,11 @@ | ||
22 | 22 | { value: { content: Position(ChooseOne({choice: 2, poll})), author: sallyId } } |
23 | 23 | ] |
24 | 24 | |
25 | 25 | 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') | |
27 | 29 | t.end() |
28 | 30 | }) |
29 | 31 | |
30 | 32 | test.skip('Position - A position stated after the closing time of the poll is not counted', function(t) { |
Built with git-ssb-web