mirror of https://github.com/gorhill/uBlock.git
Fix test.js following changes in API
This commit is contained in:
parent
9fc361c84f
commit
8c48375caf
|
@ -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();
|
||||||
})();
|
})();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue