diff --git a/spec/indexeddb_spec.mjs b/spec/indexeddb_spec.mjs index d613af6..bcefaf1 100644 --- a/spec/indexeddb_spec.mjs +++ b/spec/indexeddb_spec.mjs @@ -1,21 +1,7 @@ +import { SlopDB } from "../scripts/indexed-db.mjs" - -describe("IndexedDB Abstractions", function () { - - beforeAll(async function () { - try { - const mod = await import("../scripts/indexed-db.js") - SlopDB = mod.SlopDB - } catch (err) { - it("works?", function () { - fail(err) - }) - } +describe("sanity check", () => { + it("works", () => { + expect(true).toBeTrue() }) - - it("lol", function() { - expect(false).toBeTrue() - }) - - }) \ No newline at end of file diff --git a/spec/support/jasmine-browser.mjs b/spec/support/jasmine-browser.mjs index 9f03850..27ff92f 100644 --- a/spec/support/jasmine-browser.mjs +++ b/spec/support/jasmine-browser.mjs @@ -1,11 +1,11 @@ export default { - srcDir: "scripts", + srcDir: ".", // srcFiles should usually be left empty when using ES modules, because you'll // explicitly import sources from your specs. srcFiles: [], - specDir: "./spec", + specDir: ".", specFiles: [ - "**/*[sS]pec.?(m)js" + "spec/**/*[sS]pec.?(m)js" ], helpers: [ "spec/helpers/**/*.?(m)js" diff --git a/src/indexed-db.ts b/src/indexed-db.mts similarity index 100% rename from src/indexed-db.ts rename to src/indexed-db.mts