Fix test.js following changes in API

This commit is contained in:
Raymond Hill 2021-08-05 14:19:04 -04:00
parent 9fc361c84f
commit 8c48375caf
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
1 changed files with 2 additions and 5 deletions

View File

@ -32,7 +32,7 @@ import {
enableWASM, enableWASM,
FilteringContext, FilteringContext,
pslInit, pslInit,
restart, useRawLists,
} from './index.js'; } from './index.js';
/******************************************************************************/ /******************************************************************************/
@ -60,7 +60,7 @@ function fetch(listName) {
fetch('easylist'), fetch('easylist'),
fetch('easyprivacy'), fetch('easyprivacy'),
]).then(rawLists => { ]).then(rawLists => {
return restart([ return useRawLists([
{ name: 'easylist', raw: rawLists[0] }, { name: 'easylist', raw: rawLists[0] },
{ name: 'easyprivacy', raw: rawLists[1] }, { name: 'easyprivacy', raw: rawLists[1] },
]); ]);
@ -94,9 +94,6 @@ function fetch(listName) {
console.log(snfe.toLogData()); console.log(snfe.toLogData());
} }
// Remove all filters
restart();
process.exit(); process.exit();
})(); })();