Commit 6ae6c95edcf25b170295eefd3132274341aa6e00
Adds failing test
Piet Geursen committed on 3/9/2018, 2:59:00 AMParent: 9f1a3cbe85bcbce2b0e6bf056cd0106b2022d568
Files changed
test/poll/async/get.test.js | changed |
test/poll/async/get.test.js | ||
---|---|---|
@@ -48,8 +48,12 @@ | ||
48 | 48 … | t.equal(data.title, poll.value.content.title, 'has title') |
49 | 49 … | |
50 | 50 … | t.equal(data.positions.length, 2, 'has positions') |
51 | 51 … | |
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 … | + | |
52 | 56 … | t.ok(data.results[1].voters[katie.id]) |
53 | 57 … | t.ok(data.results[2].voters[piet.id]) |
54 | 58 … | |
55 | 59 … | server.close() |
Built with git-ssb-web