git ssb

0+

Piet / ssb-loomio



Commit 6ae6c95edcf25b170295eefd3132274341aa6e00

Adds failing test

Piet Geursen committed on 3/9/2018, 2:59:00 AM
Parent: 9f1a3cbe85bcbce2b0e6bf056cd0106b2022d568

Files changed

test/poll/async/get.test.jschanged
test/poll/async/get.test.jsView
@@ -48,8 +48,12 @@
4848 t.equal(data.title, poll.value.content.title, 'has title')
4949
5050 t.equal(data.positions.length, 2, 'has positions')
5151
52 + var positions = data.positions
53 +
54 + t.equal(positions[0].choice, pollContent.pollDetails.choices[1], 'choice is the value from the poll, not the index.')
55 +
5256 t.ok(data.results[1].voters[katie.id])
5357 t.ok(data.results[2].voters[piet.id])
5458
5559 server.close()

Built with git-ssb-web