Skip to content

Commit b253886

Browse files
tests: better fail error message
1 parent 4a18acc commit b253886

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

test/sealwatch.test.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const { network, blocktime } = helpers
2525
const users = require('./fixtures/users')
2626

2727
test('watch', function (t) {
28-
t.plan(3)
28+
t.plan(2)
2929

3030
const obj = {
3131
[TYPE]: 'something',
@@ -109,8 +109,10 @@ test('watch', function (t) {
109109

110110
// give time for duplicates to arrive if there are any
111111
setTimeout(function () {
112-
t.ok(createdActions.newwatch)
113-
t.ok(createdActions.readseal)
112+
t.deepEquals(createdActions, {
113+
newwatch: true,
114+
readseal: true
115+
})
114116

115117
sealwatch.stop()
116118
if (network.api.close) network.api.close()

0 commit comments

Comments
 (0)