summaryrefslogtreecommitdiff
path: root/tests/js/db.mjs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/js/db.mjs')
-rw-r--r--tests/js/db.mjs15
1 files changed, 10 insertions, 5 deletions
diff --git a/tests/js/db.mjs b/tests/js/db.mjs
index fcea535..c6c5c85 100644
--- a/tests/js/db.mjs
+++ b/tests/js/db.mjs
@@ -2,8 +2,13 @@ import assert from "node:assert/strict";
import sqlite from "../../src/sqlite.cjs";
-import { runTests } from "../runner.mjs";
-import { promisifyDb, open, db, init } from "../../src/db.mjs";
+import * as runner from "../runner.mjs";
+import {
+ promisifyDb,
+ open,
+ handle,
+ init,
+} from "../../src/db.mjs";
const test_promisifyDb = t => {
@@ -88,16 +93,16 @@ const test_init = t => {
t.start("init()");
t.test("we only know how to deal with 1 database", async () => {
await init();
- const ref1 = db;
+ const ref1 = handle;
await init();
- const ref2 = db;
+ const ref2 = handle;
assert.notDeepEqual(ref1, ref2);
});
};
-await runTests([
+await runner.runTests([
test_promisifyDb,
test_open,
test_init,