summaryrefslogtreecommitdiff
path: root/tests/js/utils.js
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2023-11-10 15:41:35 -0300
committerEuAndreh <eu@euandre.org>2023-11-10 15:41:38 -0300
commitd6d3bd0ac13b9d3137218e6a8f1e242ce8b79b03 (patch)
treecbab6c1934c2631ae019eeec8fcd1108ac68efeb /tests/js/utils.js
parenttests/js/utils.js: Remove test on "new Date()" objects (diff)
downloadpapod-d6d3bd0ac13b9d3137218e6a8f1e242ce8b79b03.tar.gz
papod-d6d3bd0ac13b9d3137218e6a8f1e242ce8b79b03.tar.xz
tests/js/: Run the files directly
Instead of dynamically `import()`ing them in `tests/runner.js`, make each test file instead load `tests/runner.js` and run its own tests.
Diffstat (limited to 'tests/js/utils.js')
-rw-r--r--tests/js/utils.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/js/utils.js b/tests/js/utils.js
index 523352a..b86d8c2 100644
--- a/tests/js/utils.js
+++ b/tests/js/utils.js
@@ -1,4 +1,5 @@
-import { eq, keys } from "../../src/utils.js";
+const { runTests } = require("../runner.js");
+const { eq, keys } = require("../../src/utils.js");
const test_eq = t => {
t.start("eq()");
@@ -121,7 +122,9 @@ const test_keys = t => {
});
};
-export const tests = [
+const tests = [
test_eq,
test_keys,
];
+
+runTests(tests);