This commit is contained in:
parent
3e198308b9
commit
581c275adf
2 changed files with 39 additions and 1 deletions
32
tests/commands/__snapshots__/rules.test.ts.snap
Normal file
32
tests/commands/__snapshots__/rules.test.ts.snap
Normal 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,
|
||||
},
|
||||
],
|
||||
}
|
||||
`;
|
|
@ -1,9 +1,15 @@
|
|||
import Command from "../../src/commands/rules";
|
||||
|
||||
beforeEach(() => {
|
||||
process.env = {};
|
||||
});
|
||||
|
||||
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', () => {
|
||||
|
|
Loading…
Reference in a new issue