From 8c48375caf1ec2a0adf5847895bcd6d97df71334 Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Thu, 5 Aug 2021 14:19:04 -0400 Subject: [PATCH] Fix test.js following changes in API --- platform/nodejs/test.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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(); })();