From 6212eaa099901e20807a9ec90601a6d81bd87c49 Mon Sep 17 00:00:00 2001 From: Jack Case Date: Wed, 10 Dec 2025 14:36:12 +0000 Subject: [PATCH] yet again, spending time trying to use an llm as intended was wasted. RTFM https://jasmine.github.io/setup/browser.html#es-module-support --- spec/indexeddb_spec.mjs | 22 ++++------------------ spec/support/jasmine-browser.mjs | 6 +++--- src/{indexed-db.ts => indexed-db.mts} | 0 3 files changed, 7 insertions(+), 21 deletions(-) rename src/{indexed-db.ts => indexed-db.mts} (100%) 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