Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ShotaKitazawa committed Feb 9, 2022
1 parent 1d66f7b commit 1647ddd
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions __tests__/main.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ describe('freeze time at 2006/1/2 15:04:05', () => {
let spy: jest.SpyInstance;
beforeAll(() => {
const mockDate: Date = new Date('2006/1/2 15:04:05');
spy = jest.spyOn<any, any>(global, 'Date').mockImplementation(() => mockDate);
spy = jest
.spyOn<any, any>(global, 'Date')
.mockImplementation(() => mockDate);
});
afterAll(() => {
spy.mockRestore();
Expand Down Expand Up @@ -40,7 +42,9 @@ describe('freeze time at 2006/2/2 15:04:05', () => {
let spy: jest.SpyInstance;
beforeAll(() => {
const mockDate: Date = new Date('2006/2/2 15:04:05');
spy = jest.spyOn<any, any>(global, 'Date').mockImplementation(() => mockDate);
spy = jest
.spyOn<any, any>(global, 'Date')
.mockImplementation(() => mockDate);
});
afterAll(() => {
spy.mockRestore();
Expand Down

0 comments on commit 1647ddd

Please sign in to comment.