This commit is contained in:
parent
d26f0d98d2
commit
bd5515c587
3 changed files with 950 additions and 940 deletions
16
tests/commands/timeout.test.ts
Normal file
16
tests/commands/timeout.test.ts
Normal file
|
@ -0,0 +1,16 @@
|
|||
import { PermissionsBitField, SlashCommandBuilder } from "discord.js";
|
||||
import Timeout from "../../src/commands/timeout";
|
||||
|
||||
describe('Constructor', () => {
|
||||
test('Expect CommandBuilder to be configured', () => {
|
||||
const command = new Timeout();
|
||||
|
||||
expect(command.CommandBuilder).toBeDefined();
|
||||
|
||||
const commandBuilder = command.CommandBuilder as SlashCommandBuilder;
|
||||
|
||||
expect(commandBuilder.name).toBe("timeout");
|
||||
expect(commandBuilder.description).toBe("Timeouts a user out, sending them a DM with the reason if possible");
|
||||
expect(commandBuilder.options.length).toBe(3);
|
||||
});
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue