WIP: Start of drop command tests
This commit is contained in:
parent
c08401084b
commit
d457a87fff
3 changed files with 117 additions and 4 deletions
|
@ -4,9 +4,14 @@ export default function GenerateCommandInteractionMock(options?: {
|
|||
subcommand?: string,
|
||||
}): CommandInteraction {
|
||||
return {
|
||||
deferReply: jest.fn(),
|
||||
editReply: jest.fn(),
|
||||
isChatInputCommand: jest.fn().mockReturnValue(true),
|
||||
options: {
|
||||
getSubcommand: jest.fn().mockReturnValue(options?.subcommand),
|
||||
},
|
||||
user: {
|
||||
id: "userId",
|
||||
},
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue