diff --git a/platform/nodejs/test.js b/platform/nodejs/test.js index 7ac93f7a0..838d2148b 100644 --- a/platform/nodejs/test.js +++ b/platform/nodejs/test.js @@ -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(); })();