fix unit test

This commit is contained in:
Marius Begby committed 2023-12-23 23:29:00 +01:00
1 parent 733b638cb0
commit 40b1d86554
2 files changed
+10 -8

No files matched your search

+4 -2
View File
@@ -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('');
});