chore: Enable some "perf" lint rules.

This commit is contained in:
cpojer
2026-01-31 15:58:24 +09:00
parent f99e3ddd6d
commit 7a9ddcd590
8 changed files with 20 additions and 13 deletions

View File

@@ -310,8 +310,8 @@ describe("createTelegramBot", () => {
{ command: "custom_backup", description: "Git backup" },
{ command: "custom_generate", description: "Create an image" },
]);
const reserved = listNativeCommandSpecs().map((command) => command.name);
expect(registered.some((command) => reserved.includes(command.command))).toBe(false);
const reserved = new Set(listNativeCommandSpecs().map((command) => command.name));
expect(registered.some((command) => reserved.has(command.command))).toBe(false);
});
it("uses wrapped fetch when global fetch is available", () => {