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

12 lines
342 B
TypeScript
Raw Normal View History

2023-09-03 19:15:17 +00:00
import { DenoKvPrimitives } from "./deno_kv_primitives.ts";
import { allTests } from "./kv_primitives.test.ts";
Deno.test("Test Deno KV Primitives", async () => {
const tmpFile = await Deno.makeTempFile();
const db = new DenoKvPrimitives(tmpFile);
await db.init();
await allTests(db);
db.close();
await Deno.remove(tmpFile);
});