From 1cd3381c20bdb4c1eed4e16769b4bdb026c854ff Mon Sep 17 00:00:00 2001 From: eliot-akira Date: Sun, 3 Oct 2021 05:16:55 +0200 Subject: [PATCH] Handle error: For this test, it is expected to be *not* null --- test/persistence.test.js | 1 + 1 file changed, 1 insertion(+) diff --git a/test/persistence.test.js b/test/persistence.test.js index 6ecfc20..ba614c7 100755 --- a/test/persistence.test.js +++ b/test/persistence.test.js @@ -102,6 +102,7 @@ describe('Persistence', function () { stream.push(null) d.persistence.treatRawStream(stream, function (err, result) { + assert.isNotNull(err) const treatedData = result.data treatedData.sort(function (a, b) { return a._id - b._id }) treatedData.length.should.equal(2)