diff options
author | EuAndreh <eu@euandre.org> | 2024-02-25 05:01:00 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2024-02-25 05:01:00 -0300 |
commit | 458bf0fc628d9bcf6a59a0efb898045266dab6ba (patch) | |
tree | bb538753668dad5abc7eec4a65bf4f233b34d93a /tests/js/db.mjs | |
parent | Normalize how modules import and name each other (diff) | |
download | papod-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.mjs | 5 |
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); |