git ssb

0+

Piet / ssb-loomio



Commit 1370996e72773275a544e0bdd26ee0f6db0e49d8

Improve test

Piet Geursen committed on 3/9/2018, 12:33:58 AM
Parent: 92693260135502dac86a07eef9c477fb0198568a

Files changed

test/position/sync/chooseOneResults.test.jschanged
test/position/sync/chooseOneResults.test.jsView
@@ -93,9 +93,9 @@
9393 { value: { content: ChooseOne({choice: 0, poll}), author: pietId, timestamp: now - 1 } }
9494 ]
9595
9696 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')
9898 t.end()
9999 })
100100
101101 test('ChooseOneResults - A position stated after the closing time of the poll is not counted', function (t) {

Built with git-ssb-web