@@ -507,7 +507,10 @@ describe('eslint with todo formatter', function () {
507
507
508
508
// generate todo based on existing error
509
509
await runEslintWithFormatter ( {
510
- env : { UPDATE_TODO : '1' } ,
510
+ env : {
511
+ UPDATE_TODO : '1' ,
512
+ TODO_CREATED_DATE : new Date ( '12/01/21' ) . toJSON ( ) ,
513
+ } ,
511
514
} ) ;
512
515
513
516
// mimic fixing the error manually via user interaction
@@ -526,8 +529,8 @@ describe('eslint with todo formatter', function () {
526
529
expect ( readTodoStorageFile ( getTodoStorageFilePath ( project . baseDir ) ) )
527
530
. toMatchInlineSnapshot ( `
528
531
Array [
529
- "add|eslint|no-unused-vars|1|10|1|16|50f2c7b9dac0a4af1cde42fe5be7963201d0504d|1639526400000|1642118400000|1644710400000 |src/with-fixable-error.js",
530
- "remove|eslint|no-unused-vars|1|10|1|16|50f2c7b9dac0a4af1cde42fe5be7963201d0504d|1639526400000|1642118400000|1644710400000 |src/with-fixable-error.js",
532
+ "add|eslint|no-unused-vars|1|10|1|16|50f2c7b9dac0a4af1cde42fe5be7963201d0504d|1638316800000|1640908800000|1643500800000 |src/with-fixable-error.js",
533
+ "remove|eslint|no-unused-vars|1|10|1|16|50f2c7b9dac0a4af1cde42fe5be7963201d0504d|1638316800000|1640908800000|1643500800000 |src/with-fixable-error.js",
531
534
]
532
535
` ) ;
533
536
@@ -540,7 +543,7 @@ describe('eslint with todo formatter', function () {
540
543
expect ( readTodoStorageFile ( getTodoStorageFilePath ( project . baseDir ) ) )
541
544
. toMatchInlineSnapshot ( `
542
545
Array [
543
- "add|eslint|no-unused-vars|1|10|1|16|50f2c7b9dac0a4af1cde42fe5be7963201d0504d|1639526400000|1642118400000|1644710400000 |src/with-fixable-error.js",
546
+ "add|eslint|no-unused-vars|1|10|1|16|50f2c7b9dac0a4af1cde42fe5be7963201d0504d|1638316800000|1640908800000|1643500800000 |src/with-fixable-error.js",
544
547
]
545
548
` ) ;
546
549
0 commit comments