Skip to content

Commit a064294

Browse files
committed
test: Inline variable today that's now used once
1 parent bf9e3fd commit a064294

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tests/Task.test.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1019,11 +1019,9 @@ describe('toggle done', () => {
10191019
});
10201020

10211021
describe('set correct created date on reccurence task', () => {
1022-
const today = '2023-03-08';
1023-
10241022
beforeEach(() => {
10251023
jest.useFakeTimers();
1026-
jest.setSystemTime(new Date(today));
1024+
jest.setSystemTime(new Date('2023-03-08'));
10271025
});
10281026

10291027
afterEach(() => {

0 commit comments

Comments
 (0)