mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-10 01:02:08 +01:00
Fix test.js following changes in API
This commit is contained in:
parent
9fc361c84f
commit
8c48375caf
1 changed files with 2 additions and 5 deletions
|
@ -32,7 +32,7 @@ import {
|
|||
enableWASM,
|
||||
FilteringContext,
|
||||
pslInit,
|
||||
restart,
|
||||
useRawLists,
|
||||
} from './index.js';
|
||||
|
||||
/******************************************************************************/
|
||||
|
@ -60,7 +60,7 @@ function fetch(listName) {
|
|||
fetch('easylist'),
|
||||
fetch('easyprivacy'),
|
||||
]).then(rawLists => {
|
||||
return restart([
|
||||
return useRawLists([
|
||||
{ name: 'easylist', raw: rawLists[0] },
|
||||
{ name: 'easyprivacy', raw: rawLists[1] },
|
||||
]);
|
||||
|
@ -94,9 +94,6 @@ function fetch(listName) {
|
|||
console.log(snfe.toLogData());
|
||||
}
|
||||
|
||||
// Remove all filters
|
||||
restart();
|
||||
|
||||
process.exit();
|
||||
})();
|
||||
|
||||
|
|
Loading…
Reference in a new issue