diff options
author | EuAndreh <eu@euandre.org> | 2023-11-10 15:41:35 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2023-11-10 15:41:38 -0300 |
commit | d6d3bd0ac13b9d3137218e6a8f1e242ce8b79b03 (patch) | |
tree | cbab6c1934c2631ae019eeec8fcd1108ac68efeb /tests/js/utils.js | |
parent | tests/js/utils.js: Remove test on "new Date()" objects (diff) | |
download | papod-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.js | 7 |
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); |