Skip to content

Commit

Permalink
Fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
markokajzer committed Jan 22, 2020
1 parent 3956911 commit 947fab1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/__jest__/util/getMessageFixture.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@ import { Message } from 'discord.js';

import getChannelFixture from './getChannelFixture';

const getMessageFixture = (overrides?: Partial<Message>): Message =>
interface PartialMessage {
content?: string;
}

const getMessageFixture = (overrides?: PartialMessage): Message =>
(({
channel: getChannelFixture(),
reply: jest.fn(),
Expand Down

0 comments on commit 947fab1

Please sign in to comment.