silverbullet/lib/data/indexeddb_kv_primitives.tes...

14 lines
366 B
TypeScript
Raw Normal View History

import "fake-indexeddb/auto";
2023-09-04 03:15:17 +08:00
import { IndexedDBKvPrimitives } from "./indexeddb_kv_primitives.ts";
import { allTests } from "./kv_primitives.test.ts";
Deno.test("Test IDB key primitives", {
sanitizeResources: false,
sanitizeOps: false,
}, async () => {
const db = new IndexedDBKvPrimitives("test");
await db.init();
await allTests(db);
db.close();
});