From 993835b3335b6a17c0adf9a3ecc6d400ca62ad47 Mon Sep 17 00:00:00 2001 From: Manish Jethani Date: Tue, 10 Aug 2021 23:38:05 +0530 Subject: [PATCH] Use test assertions (#3811) --- platform/nodejs/test.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/platform/nodejs/test.js b/platform/nodejs/test.js index 040e453bb..922fe16bd 100644 --- a/platform/nodejs/test.js +++ b/platform/nodejs/test.js @@ -26,6 +26,7 @@ /******************************************************************************/ +import { strict as assert } from 'assert'; import { createRequire } from 'module'; import { @@ -92,10 +93,14 @@ async function doSNFE() { const serialized = await engine.serialize(); engine.useLists([]); + assert.notDeepEqual(await engine.serialize(), serialized); + testSNFE(engine); await engine.deserialize(serialized); + assert.deepEqual(await engine.serialize(), serialized); + testSNFE(engine); }