style: format rank permission regression test
CI / check (push) Successful in 27s
CI / release (push) Skipped
CI / deploy (push) Successful in 42s

This commit is contained in:
Simo committed 2026-08-31 20:51:47 +02:00
1 parent edfe878b2a
commit 384ede19c4
1 file changed
+4 -5
+4 -5
View File
@@ -113,10 +113,7 @@ describe("fetchEmulatorRankForEdit", () => {
} }
if (text.includes("FROM permission_definitions")) { if (text.includes("FROM permission_definitions")) {
if (!hasRankColumn) throw new Error("Unknown column 'rank_11'"); if (!hasRankColumn) throw new Error("Unknown column 'rank_11'");
return [ return [[{ permission_key: "cmd_ban", max_value: 1, value: 0 }], []];
[{ permission_key: "cmd_ban", max_value: 1, value: 0 }],
[],
];
} }
throw new Error(`Unexpected query: ${text}`); throw new Error(`Unexpected query: ${text}`);
}, },
@@ -125,7 +122,9 @@ describe("fetchEmulatorRankForEdit", () => {
}, },
}; };
await expect(fetchEmulatorRankForEdit(db as never, 11)).resolves.toMatchObject({ await expect(
fetchEmulatorRankForEdit(db as never, 11),
).resolves.toMatchObject({
id: 11, id: 11,
permissions: { cmd_ban: "0" }, permissions: { cmd_ban: "0" },
}); });