1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-11-22 18:32:45 +01:00

Use test assertions (#3811)

This commit is contained in:
Manish Jethani 2021-08-10 23:38:05 +05:30 committed by GitHub
parent 0d976d049c
commit 993835b333
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
}