summaryrefslogtreecommitdiff
path: root/tests/js/db.mjs
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2024-02-25 05:01:00 -0300
committerEuAndreh <eu@euandre.org>2024-02-25 05:01:00 -0300
commit458bf0fc628d9bcf6a59a0efb898045266dab6ba (patch)
treebb538753668dad5abc7eec4a65bf4f233b34d93a /tests/js/db.mjs
parentNormalize how modules import and name each other (diff)
downloadpapod-458bf0fc628d9bcf6a59a0efb898045266dab6ba.tar.gz
papod-458bf0fc628d9bcf6a59a0efb898045266dab6ba.tar.xz
Explicit import from "node:process"; move log() to hero.mjs
Diffstat (limited to 'tests/js/db.mjs')
-rw-r--r--tests/js/db.mjs5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/js/db.mjs b/tests/js/db.mjs
index c6c5c85..c02c43e 100644
--- a/tests/js/db.mjs
+++ b/tests/js/db.mjs
@@ -92,9 +92,10 @@ const test_open = t => {
const test_init = t => {
t.start("init()");
t.test("we only know how to deal with 1 database", async () => {
- await init();
+ const logFn = () => {};
+ await init(logFn);
const ref1 = handle;
- await init();
+ await init(logFn);
const ref2 = handle;
assert.notDeepEqual(ref1, ref2);