From 73467de1125c991ac8e71fd8017f935fc9bca95f Mon Sep 17 00:00:00 2001 From: Bart Louwers Date: Mon, 28 Aug 2023 09:00:23 +0200 Subject: [PATCH] Fix problematic test missing done() --- tests/integration/test.basics.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/integration/test.basics.js b/tests/integration/test.basics.js index 946cb61736..965ae28ecd 100644 --- a/tests/integration/test.basics.js +++ b/tests/integration/test.basics.js @@ -54,7 +54,7 @@ adapters.forEach(function (adapter) { return new PouchDB(dbs.name).destroy({}); }); - it('4339 throw useful error if method called on stale instance', function () { + it('4339 throw useful error if method called on stale instance', function (done) { var db = new PouchDB(dbs.name); return db.put({ @@ -67,6 +67,7 @@ adapters.forEach(function (adapter) { throw new Error('.get should return an error'); }, function (err) { should.equal(err instanceof Error, true, 'should be an error'); + done(); }); });