Require explicit call to run tests.

This commit is contained in:
hackademix 2024-11-09 17:00:59 +01:00
parent f538c07167
commit 1f08032880
No known key found for this signature in database
GPG Key ID: 231A83AFDA9C2434
3 changed files with 6 additions and 4 deletions

View File

@ -352,8 +352,9 @@
} }
}, },
test() { async test() {
include("/test/run.js"); await include("/test/run.js"); // DEV_ONLY
runTests();
}, },
async testIC(callbackOrUrl) { async testIC(callbackOrUrl) {

View File

@ -18,7 +18,7 @@
* this program. If not, see <https://www.gnu.org/licenses/>. * this program. If not, see <https://www.gnu.org/licenses/>.
*/ */
(async () => { globalThis.runTests = async () => {
await include("/nscl/test/Test.js"); await include("/nscl/test/Test.js");
Test.include([ Test.include([
"/nscl/test/Policy_test.js", "/nscl/test/Policy_test.js",
@ -27,4 +27,4 @@
"XSS", "XSS",
"embargoed/XSS", "embargoed/XSS",
]); ]);
})(); };

1
src/test/test Symbolic link
View File

@ -0,0 +1 @@
../src/test