diff --git a/.github/workflows/auto-format.yml b/.github/workflows/auto-format.yml index 3ca6ee41..ada9eba8 100644 --- a/.github/workflows/auto-format.yml +++ b/.github/workflows/auto-format.yml @@ -25,7 +25,7 @@ jobs: - name: Run Biome format # Pin to the version in package.json so CI matches local/pre-commit # (npx @latest drifts — e.g. 2.5.0 broke this job on unrelated PRs). - run: npx @biomejs/biome@2.4.13 check --write --no-errors-on-unmatched . + run: npx @biomejs/biome@2.5.7 check --write --no-errors-on-unmatched . - name: Check for changes id: changes diff --git a/tests/unit/log-save-route.test.ts b/tests/unit/log-save-route.test.ts index 8552adbd..e1f61eaf 100644 --- a/tests/unit/log-save-route.test.ts +++ b/tests/unit/log-save-route.test.ts @@ -22,18 +22,16 @@ function post(body: unknown): Request { } describe("POST /api/log-save", () => { - it.each([ - "drawio", - "png", - "svg", - "xmlsvg", - ])("logs a save in %s format", async (format) => { - const res = await logSave( - post({ filename: "diagram", format, sessionId: "s1" }), - ) - expect(res.status).toBe(200) - expect(await res.json()).toEqual({ success: true, logged: true }) - }) + it.each(["drawio", "png", "svg", "xmlsvg"])( + "logs a save in %s format", + async (format) => { + const res = await logSave( + post({ filename: "diagram", format, sessionId: "s1" }), + ) + expect(res.status).toBe(200) + expect(await res.json()).toEqual({ success: true, logged: true }) + }, + ) it("rejects an unknown format", async () => { const res = await logSave(