From 425266eed9f2f28d59c22b6bd5d72fe09a5dc84a Mon Sep 17 00:00:00 2001 From: Ethan Lane Date: Thu, 25 Jul 2024 18:42:57 +0100 Subject: [PATCH] Fix lint --- tests/registry.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/registry.test.ts b/tests/registry.test.ts index 38d012c..71d80db 100644 --- a/tests/registry.test.ts +++ b/tests/registry.test.ts @@ -16,7 +16,7 @@ describe("RegisterCommands", () => { const commandFiles = getFilesInDirectory(path.join(process.cwd(), "src", "commands")) .filter(x => x.endsWith(".ts")); - for (let file of commandFiles) { + for (const file of commandFiles) { expect(registeredCommands).toContain(file.split("/").pop()!.split(".")[0]); } @@ -37,7 +37,7 @@ describe("RegisterButtonEvents", () => { const eventFiles = getFilesInDirectory(path.join(process.cwd(), "src", "buttonEvents")) .filter(x => x.endsWith(".ts")); - for (let file of eventFiles) { + for (const file of eventFiles) { expect(registeredButtonEvents).toContain(file.split("/").pop()!.split(".")[0].toLowerCase()); }