Require explicit call to run tests.
This commit is contained in:
parent
dc6ee399dd
commit
7753e5345c
|
@ -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) {
|
||||||
|
|
|
@ -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",
|
||||||
]);
|
]);
|
||||||
})();
|
};
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
../src/test
|
Loading…
Reference in New Issue