Skip to content
This repository has been archived by the owner on Mar 8, 2024. It is now read-only.

Commit

Permalink
mockがanyになるのは仕方ないのでeslint-disable-next-lineで逃げる
Browse files Browse the repository at this point in the history
  • Loading branch information
proshunsuke committed Nov 27, 2021
1 parent 686b231 commit 2fcae6a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/calendar.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ describe('deleteEvent', (): void => {
const calendarEventMock: jest.Mock = jest.fn(() => ({
deleteEvent: deleteEventMock,
}));
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
Calendar.deleteEvent(calendarEventMock());
expect(deleteEventMock).toBeCalledTimes(1);
});
Expand All @@ -67,6 +68,7 @@ describe('deleteEvent', (): void => {
const calendarEventMock: jest.Mock = jest.fn(() => ({
deleteEvent: deleteEventMock,
}));
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
Calendar.deleteEvent(calendarEventMock());
expect(Utilities.sleep).not.toBeCalled();
});
Expand Down

0 comments on commit 2fcae6a

Please sign in to comment.