lint: fix biome issues in new test files and helpers
This commit is contained in:
1 parent
99eb3af17b
commit
93862c2275
41 files changed
+488
-314
No files matched your search
@@ -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,
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user