diff --git a/src/bg/main.js b/src/bg/main.js index 91fb98c..eb5e3ec 100644 --- a/src/bg/main.js +++ b/src/bg/main.js @@ -352,8 +352,9 @@ } }, - test() { - include("/test/run.js"); + async test() { + await include("/test/run.js"); // DEV_ONLY + runTests(); }, async testIC(callbackOrUrl) { diff --git a/src/test/run.js b/src/test/run.js index 775b26a..944e01b 100644 --- a/src/test/run.js +++ b/src/test/run.js @@ -18,7 +18,7 @@ * this program. If not, see . */ -(async () => { +globalThis.runTests = async () => { await include("/nscl/test/Test.js"); Test.include([ "/nscl/test/Policy_test.js", @@ -27,4 +27,4 @@ "XSS", "embargoed/XSS", ]); -})(); +}; diff --git a/src/test/test b/src/test/test new file mode 120000 index 0000000..cf03d95 --- /dev/null +++ b/src/test/test @@ -0,0 +1 @@ +../src/test \ No newline at end of file