WIP: Start of rules command tests
All checks were successful
Test / build (push) Successful in 17s

This commit is contained in:
Ethan Lane 2024-05-18 10:14:57 +01:00
parent 3e198308b9
commit 581c275adf
2 changed files with 39 additions and 1 deletions

View file

@ -0,0 +1,32 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`Constructor EXPECT properties to be set 1`] = `
{
"default_member_permissions": "8",
"default_permission": undefined,
"description": "Rules-related commands",
"description_localizations": undefined,
"dm_permission": undefined,
"name": "rules",
"name_localizations": undefined,
"nsfw": undefined,
"options": [
{
"description": "Send the rules embeds for this server",
"description_localizations": undefined,
"name": "embeds",
"name_localizations": undefined,
"options": [],
"type": 1,
},
{
"description": "Send the server verification embed button",
"description_localizations": undefined,
"name": "access",
"name_localizations": undefined,
"options": [],
"type": 1,
},
],
}
`;

View file

@ -1,9 +1,15 @@
import Command from "../../src/commands/rules";
beforeEach(() => { beforeEach(() => {
process.env = {}; process.env = {};
}); });
describe('Constructor', () => { describe('Constructor', () => {
test.todo('EXPECT properties to be set'); test('EXPECT properties to be set', () => {
const command = new Command();
expect(command.CommandBuilder).toMatchSnapshot();
});
}); });
describe('Execute', () => { describe('Execute', () => {