Update tests
This commit is contained in:
parent
6f42cfb8f6
commit
34964af78e
6 changed files with 92 additions and 101 deletions
|
@ -0,0 +1,21 @@
|
|||
import { ButtonInteraction } from "../../__types__/discord.js";
|
||||
|
||||
export default function GenerateButtonInteractionMock(): ButtonInteraction {
|
||||
return {
|
||||
guild: {},
|
||||
guildId: "guildId",
|
||||
channel: {
|
||||
isSendable: jest.fn().mockReturnValue(true),
|
||||
send: jest.fn(),
|
||||
},
|
||||
deferUpdate: jest.fn(),
|
||||
editReply: jest.fn(),
|
||||
message: {
|
||||
createdAt: new Date(1000 * 60 * 27),
|
||||
},
|
||||
user: {
|
||||
id: "userId",
|
||||
},
|
||||
customId: "customId",
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue