nest describes for version 1/version 2 DB

This commit is contained in:
Jack Case
2025-12-11 16:12:41 +00:00
parent fbb11c86cc
commit 1b0f7e7704

View File

@@ -19,6 +19,7 @@ describe("SlopDB", () => {
db.close() db.close()
}) })
describe("version 1", () => {
it("creates a version 1 indexeddb", async () => { it("creates a version 1 indexeddb", async () => {
const slopdb_v1 = new SlopDB(1) const slopdb_v1 = new SlopDB(1)
await slopdb_v1.db_opened() await slopdb_v1.db_opened()
@@ -30,7 +31,9 @@ describe("SlopDB", () => {
// slopdb_v1.db.close() // slopdb_v1.db.close()
}) })
})
describe("version 2", () => {
it("creates a version 2 indexeddb", async () => { it("creates a version 2 indexeddb", async () => {
const slopdb_v2 = new SlopDB(2) const slopdb_v2 = new SlopDB(2)
await slopdb_v2.db_opened() await slopdb_v2.db_opened()
@@ -43,3 +46,6 @@ describe("SlopDB", () => {
// slopdb_v2.db.close() // slopdb_v2.db.close()
}) })
}) })
})