This commit is contained in:
parent
52be4481d4
commit
49f4f4f804
1 changed files with 2 additions and 2 deletions
|
@ -16,7 +16,7 @@ describe("RegisterCommands", () => {
|
||||||
const commandFiles = getFilesInDirectory(path.join(process.cwd(), "src", "commands"))
|
const commandFiles = getFilesInDirectory(path.join(process.cwd(), "src", "commands"))
|
||||||
.filter(x => x.endsWith(".ts"));
|
.filter(x => x.endsWith(".ts"));
|
||||||
|
|
||||||
for (let file of commandFiles) {
|
for (const file of commandFiles) {
|
||||||
expect(registeredCommands).toContain(file.split("/").pop()!.split(".")[0]);
|
expect(registeredCommands).toContain(file.split("/").pop()!.split(".")[0]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -37,7 +37,7 @@ describe("RegisterButtonEvents", () => {
|
||||||
const eventFiles = getFilesInDirectory(path.join(process.cwd(), "src", "buttonEvents"))
|
const eventFiles = getFilesInDirectory(path.join(process.cwd(), "src", "buttonEvents"))
|
||||||
.filter(x => x.endsWith(".ts"));
|
.filter(x => x.endsWith(".ts"));
|
||||||
|
|
||||||
for (let file of eventFiles) {
|
for (const file of eventFiles) {
|
||||||
expect(registeredButtonEvents).toContain(file.split("/").pop()!.split(".")[0].toLowerCase());
|
expect(registeredButtonEvents).toContain(file.split("/").pop()!.split(".")[0].toLowerCase());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue