Skip to content

Commit

Permalink
test: - Make a mock date easier to read
Browse files Browse the repository at this point in the history
  • Loading branch information
claremacrae committed Dec 15, 2023
1 parent b36089d commit 553e1ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/Task.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1297,7 +1297,7 @@ describe('created dates on recurring task', () => {
describe('order of recurring tasks', () => {
beforeEach(() => {
jest.useFakeTimers();
jest.setSystemTime(new Date(2023, 5 - 1, 16));
jest.setSystemTime(new Date('2023-05-16'));
});

it('should put new task before old, by default', () => {
Expand Down

0 comments on commit 553e1ac

Please sign in to comment.