1
0
silverbullet/plugos/lib/indexeddb_kv_primitives.test.ts
2023-09-03 21:15:17 +02:00

14 lines
387 B
TypeScript

import "https://esm.sh/fake-indexeddb@4.0.2/auto";
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();
});