git ssb

0+

Piet / ssb-loomio



Commit e6e1a82c5e20884896923ef44ff312aab0fb37e5

Better test description

Piet Geursen committed on 3/12/2018, 12:51:04 AM
Parent: 0618fd5aff9f68b923f7a9102c66f3367fac4939

Files changed

test/poll/async/get.test.jschanged
test/poll/async/get.test.jsView
@@ -56,9 +56,10 @@
5656
5757 t.equal(data.positions.length, 2, 'has positions')
5858
5959 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')
6162
6263 t.equal(positions[0].choice, pollContent.details.choices[1], 'choice is the value from the poll, not the index.')
6364
6465 t.ok(data.results[1].voters[katie.id])

Built with git-ssb-web