Skip to content

Commit

Permalink
tests: better fail error message
Browse files Browse the repository at this point in the history
  • Loading branch information
martinheidegger committed Jan 12, 2022
1 parent 4a18acc commit b253886
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions test/sealwatch.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const { network, blocktime } = helpers
const users = require('./fixtures/users')

test('watch', function (t) {
t.plan(3)
t.plan(2)

const obj = {
[TYPE]: 'something',
Expand Down Expand Up @@ -109,8 +109,10 @@ test('watch', function (t) {

// give time for duplicates to arrive if there are any
setTimeout(function () {
t.ok(createdActions.newwatch)
t.ok(createdActions.readseal)
t.deepEquals(createdActions, {
newwatch: true,
readseal: true
})

sealwatch.stop()
if (network.api.close) network.api.close()
Expand Down

0 comments on commit b253886

Please sign in to comment.