style: format rank permission regression test
This commit is contained in:
1 parent
edfe878b2a
commit
384ede19c4
1 file changed
+4
-5
@@ -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" },
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in new issue
Block a user