This commit is contained in:
parent
ea6bac2af1
commit
69ef94dbb5
84 changed files with 993 additions and 7394 deletions
37
tests/commands/Role/role.test.ts
Normal file
37
tests/commands/Role/role.test.ts
Normal file
|
@ -0,0 +1,37 @@
|
|||
beforeEach(() => {
|
||||
process.env = {};
|
||||
});
|
||||
|
||||
describe('Constructor', () => {
|
||||
test.todo('EXPECT properties are set');
|
||||
});
|
||||
|
||||
describe('Execute', () => {
|
||||
test.todo("GIVEN interaction is not a chat input command, EXPECT nothing to happen");
|
||||
|
||||
test.todo("GIVEN an invalid subcommand is given, EXPECT not found error");
|
||||
});
|
||||
|
||||
describe("toggle", () => {
|
||||
test.todo("GIVEN user has the role, EXPECT role to be removed");
|
||||
|
||||
test.todo("GIVEN user does not have the role, EXPECT role to be added")
|
||||
|
||||
test.todo("GIVEN interaction.guild is null, EXPECT nothing to happen");
|
||||
|
||||
test.todo("GIVEN interaction.member is null, EXPECT nothing to happen");
|
||||
|
||||
test.todo("GIVEN requestedRole is null, EXPECT invalid error");
|
||||
|
||||
test.todo("GIVEN requestedRole.role is undefined, EXPECT invalid error");
|
||||
|
||||
test.todo("GIVEN role is not assignable, EXPECT unassignable error");
|
||||
|
||||
test.todo("GIVEN assignRole is not foundm, EXPECT nothing to happen");
|
||||
|
||||
test.todo("GIVEN assignRole is not editable, EXPECT insufficient permissions error");
|
||||
});
|
||||
|
||||
describe("list", () => {
|
||||
test.todo("EXPECT role list to be sent");
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue