lint: fix biome issues in new test files and helpers
CI / check (push) Failing after 34s
CI / preflight (push) Skipped
CI / deploy (push) Skipped

This commit is contained in:
openhands committed 2026-09-21 18:19:39 +02:00
1 parent 99eb3af17b
commit 93862c2275
41 files changed
+488 -314

No files matched your search

+8 -7
View File
@@ -102,7 +102,6 @@ vi.mock("@/lib/db", async () => {
};
});
import { PERMS } from "@/lib/permissions";
import {
alertUser,
disconnectUser,
@@ -113,9 +112,9 @@ import {
giveDiamonds,
giveDuckets,
hotelAlert,
sendGift,
setMotto,
setRank,
sendGift,
updateCatalog,
updateNavigator,
updateWordFilter,
@@ -297,10 +296,12 @@ describe("giveCredits / giveDuckets / giveDiamonds", () => {
});
it("rejects negative amounts", async () => {
await expect(giveCredits({ userId: 1, credits: 0 })).resolves.toMatchObject({
ok: false,
error: "Validation failed",
});
await expect(giveCredits({ userId: 1, credits: 0 })).resolves.toMatchObject(
{
ok: false,
error: "Validation failed",
},
);
});
});
@@ -452,4 +453,4 @@ describe("access control", () => {
error: RCON_FAIL,
});
});
});
});