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();
|
2023-10-03 12:16:33 +00:00
|
|
|
const db = new DenoKvPrimitives(await Deno.openKv(tmpFile));
|
2023-09-03 19:15:17 +00:00
|
|
|
await allTests(db);
|
|
|
|
db.close();
|
|
|
|
await Deno.remove(tmpFile);
|
|
|
|
});
|