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()); }