mirror of
https://github.com/darksaid98/cadence-discord-bot.git
synced 2026-12-02 22:16:13 +00:00
fix unit test
This commit is contained in:
1 parent
733b638cb0
commit
40b1d86554
2 files changed
+10
-8
No files matched your search
@@ -16,7 +16,8 @@ describe('HelpCommand', () => {
|
||||
}
|
||||
} as unknown as BaseSlashCommandInteraction;
|
||||
|
||||
const commandParams = helpCommand['getCommandParams'](command);
|
||||
const locale = 'en-US';
|
||||
const commandParams = helpCommand['getCommandParams'](command, locale);
|
||||
|
||||
expect(commandParams).toBe('**`optionname`** ');
|
||||
});
|
||||
@@ -28,7 +29,8 @@ describe('HelpCommand', () => {
|
||||
}
|
||||
} as unknown as BaseSlashCommandInteraction;
|
||||
|
||||
const commandParams = helpCommand['getCommandParams'](command);
|
||||
const locale = 'en-US';
|
||||
const commandParams = helpCommand['getCommandParams'](command, locale);
|
||||
|
||||
expect(commandParams).toBe('');
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user