1
0
silverbullet/plugos/lib/indexeddb_kv_primitives.test.ts

14 lines
387 B
TypeScript
Raw Normal View History

2023-09-03 19:15:17 +00:00
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();
});