mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-20 01:12:38 +01:00
Use test assertions (#3811)
This commit is contained in:
parent
0d976d049c
commit
993835b333
@ -26,6 +26,7 @@
|
|||||||
|
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
|
|
||||||
|
import { strict as assert } from 'assert';
|
||||||
import { createRequire } from 'module';
|
import { createRequire } from 'module';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
@ -92,10 +93,14 @@ async function doSNFE() {
|
|||||||
const serialized = await engine.serialize();
|
const serialized = await engine.serialize();
|
||||||
engine.useLists([]);
|
engine.useLists([]);
|
||||||
|
|
||||||
|
assert.notDeepEqual(await engine.serialize(), serialized);
|
||||||
|
|
||||||
testSNFE(engine);
|
testSNFE(engine);
|
||||||
|
|
||||||
await engine.deserialize(serialized);
|
await engine.deserialize(serialized);
|
||||||
|
|
||||||
|
assert.deepEqual(await engine.serialize(), serialized);
|
||||||
|
|
||||||
testSNFE(engine);
|
testSNFE(engine);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user