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 {
|
||||
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user