Skip to content

Commit

Permalink
fix(tests): update & fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Snazzah committed Sep 14, 2024
1 parent 6692147 commit a08e8f3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/__util__/commands.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { SlashCommand, SlashCommandOptions } from '../../src/command';
import { CommandContext } from '../../src/structures/interfaces/commandContext';
import { SlashCreator } from '../../src/creator';
import { SlashCreator } from '../../src/node/creator';

export const createBasicCommand = (
opts: Partial<SlashCommandOptions> = {},
Expand Down
1 change: 1 addition & 0 deletions test/creator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ describe('SlashCreator', () => {
defaultImageSize: 128,
disableTimeouts: false,
componentTimeouts: false,
postCallbacks: false,
unknownCommandResponse: true,
handleCommandsManually: false,
latencyThreshold: 30000,
Expand Down
2 changes: 1 addition & 1 deletion test/structures/message.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { CommandContext } from '../../src/structures/interfaces/commandContext';
import { Message } from '../../src/structures/message';
import { basicInteraction, creator, editedMessage, followUpMessage, noop } from '../__util__/constants';
import { deleteMessage, editMessage } from '../__util__/nock';
const ctx = new CommandContext(creator, basicInteraction, noop, false);
const ctx = new CommandContext(creator, basicInteraction, noop, false, false, true, null);
ctx.initiallyResponded = true;
// @ts-expect-error
clearTimeout(ctx._timeout);
Expand Down

0 comments on commit a08e8f3

Please sign in to comment.