Commit e6e1a82c5e20884896923ef44ff312aab0fb37e5
Better test description
Piet Geursen committed on 3/12/2018, 12:51:04 AMParent: 0618fd5aff9f68b923f7a9102c66f3367fac4939
Files changed
test/poll/async/get.test.js | changed |
test/poll/async/get.test.js | |||
---|---|---|---|
@@ -56,9 +56,10 @@ | |||
56 | 56 … | ||
57 | 57 … | t.equal(data.positions.length, 2, 'has positions') | |
58 | 58 … | ||
59 | 59 … | var positions = data.positions | |
60 | - t.equal(positions[1].value.content.branch[0], positions[0].key, 'postions publish branch info') | ||
60 … | + t.deepEqual(positions[0].value.content.branch, [], 'first published postion has no branch') | ||
61 … | + t.equal(positions[1].value.content.branch[0], positions[0].key, 'second published branch has first position as branch') | ||
61 | 62 … | ||
62 | 63 … | t.equal(positions[0].choice, pollContent.details.choices[1], 'choice is the value from the poll, not the index.') | |
63 | 64 … | ||
64 | 65 … | t.ok(data.results[1].voters[katie.id]) |
Built with git-ssb-web