From b253886b5f9ecfde5da1890f5f674f1484c34eb3 Mon Sep 17 00:00:00 2001 From: Martin Heidegger Date: Thu, 13 Jan 2022 00:47:33 +0900 Subject: [PATCH] tests: better fail error message --- test/sealwatch.test.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/test/sealwatch.test.js b/test/sealwatch.test.js index bd74878..1df20b8 100644 --- a/test/sealwatch.test.js +++ b/test/sealwatch.test.js @@ -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', @@ -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()