summaryrefslogtreecommitdiff
path: root/tests/runner.js
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2023-11-16 16:09:05 -0300
committerEuAndreh <eu@euandre.org>2023-11-16 16:09:05 -0300
commit4eea08e81de0aa006434d7299397d60ecee9abd1 (patch)
treea1bf6820b97df30a8b457a787a1a91f51b98a587 /tests/runner.js
parentAdd WIP non-async functions to napi-sqlite.c (diff)
downloadpapod-4eea08e81de0aa006434d7299397d60ecee9abd1.tar.gz
papod-4eea08e81de0aa006434d7299397d60ecee9abd1.tar.xz
tests/runner.js: Replace hand-rolled assert with "node:assert" module
Diffstat (limited to 'tests/runner.js')
-rw-r--r--tests/runner.js11
1 files changed, 0 insertions, 11 deletions
diff --git a/tests/runner.js b/tests/runner.js
index ca0c183..4772a28 100644
--- a/tests/runner.js
+++ b/tests/runner.js
@@ -23,17 +23,6 @@ const t = {
throw e;
}
},
- assertEq: (expected, given, msg = "") => {
- if (!eq(expected, given)) {
- console.error("expected:", expected, "\ngiven: ", given);
- throw new AssertionError(`${red(msg)}`);
- }
- },
- assert: (x, msg = "") => {
- if (!x) {
- throw new AssertionError(`${red(msg)}`);
- }
- },
};
const runTests = async tests => {