Commit 1370996e72773275a544e0bdd26ee0f6db0e49d8
Improve test
Piet Geursen committed on 3/9/2018, 12:33:58 AMParent: 92693260135502dac86a07eef9c477fb0198568a
Files changed
test/position/sync/chooseOneResults.test.js | changed |
test/position/sync/chooseOneResults.test.js | |||
---|---|---|---|
@@ -93,9 +93,9 @@ | |||
93 | 93 … | { value: { content: ChooseOne({choice: 0, poll}), author: pietId, timestamp: now - 1 } } | |
94 | 94 … | ] | |
95 | 95 … | ||
96 | 96 … | const actual = chooseOneResults({positions, poll: validPoll}) | |
97 | - t.true(actual.results[0], 'valid vote is counted') | ||
97 … | + t.ok(actual.results[0].voters[pietId], 'valid vote is counted') | ||
98 | 98 … | t.end() | |
99 | 99 … | }) | |
100 | 100 … | ||
101 | 101 … | test('ChooseOneResults - A position stated after the closing time of the poll is not counted', function (t) { |
Built with git-ssb-web