vylbot-app/tests/commands/rules.test.ts
Ethan Lane 581c275adf
All checks were successful
Test / build (push) Successful in 17s
WIP: Start of rules command tests
2024-05-18 10:14:57 +01:00

25 lines
690 B
TypeScript

import Command from "../../src/commands/rules";
beforeEach(() => {
process.env = {};
});
describe('Constructor', () => {
test('EXPECT properties to be set', () => {
const command = new Command();
expect(command.CommandBuilder).toMatchSnapshot();
});
});
describe('Execute', () => {
test.todo("GIVEN interaction is not a chat input command, EXPECT nothing to happen");
test.todo("GIVEN invalid subcommand is given, EXPECT invalid error");
});
describe("access", () => {
test.todo("GIVEN interaction.guildId is null, EXPECT nothing to happen");
test.todo("GIVEN rules.access.label setting is not supplied, EXPECT label to be defaulted");
});