nest describes for version 1/version 2 DB
This commit is contained in:
@@ -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()
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user