@@ -412,15 +412,17 @@ describe('task line rendering - classes and data attributes', () => {
412
412
await testComponentClasses ( `- [-] Canc task ❌ ${ past } ` , 'task-cancelled' , 'taskCancelled: past-7d' ) ;
413
413
} ) ;
414
414
415
- it ( 'should render date component with its class and data attribute with "future-far" & "past-far" values ' , async ( ) => {
415
+ it ( 'should render date component with its class and data attribute with "future-far"' , async ( ) => {
416
416
const future = DateParser . parseDate ( 'in 8 days' ) . format ( TaskRegularExpressions . dateFormat ) ;
417
417
await testComponentClasses ( `- [ ] Full task ⏫ ➕ ${ future } ` , 'task-created' , 'taskCreated: future-far' ) ;
418
418
await testComponentClasses ( `- [ ] Full task ⏫ 📅 ${ future } ` , 'task-due' , 'taskDue: future-far' ) ;
419
419
await testComponentClasses ( `- [ ] Full task ⏫ ⏳ ${ future } ` , 'task-scheduled' , 'taskScheduled: future-far' ) ;
420
420
await testComponentClasses ( `- [ ] Full task ⏫ 🛫 ${ future } ` , 'task-start' , 'taskStart: future-far' ) ;
421
421
await testComponentClasses ( `- [x] Done task ✅ ${ future } ` , 'task-done' , 'taskDone: future-far' ) ;
422
422
await testComponentClasses ( `- [-] Canc task ❌ ${ future } ` , 'task-cancelled' , 'taskCancelled: future-far' ) ;
423
+ } ) ;
423
424
425
+ it ( 'should render date component with its class and data attribute with "past-far" values' , async ( ) => {
424
426
const past = DateParser . parseDate ( '8 days ago' ) . format ( TaskRegularExpressions . dateFormat ) ;
425
427
await testComponentClasses ( `- [ ] Full task ⏫ ➕ ${ past } ` , 'task-created' , 'taskCreated: past-far' ) ;
426
428
await testComponentClasses ( `- [ ] Full task ⏫ 📅 ${ past } ` , 'task-due' , 'taskDue: past-far' ) ;
0 commit comments