Skip to content

Commit 075172c

Browse files
committed
test: Split up a test that did two things, to next step
1 parent fd9dd20 commit 075172c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/TaskLineRenderer.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,15 +412,17 @@ describe('task line rendering - classes and data attributes', () => {
412412
await testComponentClasses(`- [-] Canc task ❌ ${past}`, 'task-cancelled', 'taskCancelled: past-7d');
413413
});
414414

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 () => {
416416
const future = DateParser.parseDate('in 8 days').format(TaskRegularExpressions.dateFormat);
417417
await testComponentClasses(`- [ ] Full task ⏫ ➕ ${future}`, 'task-created', 'taskCreated: future-far');
418418
await testComponentClasses(`- [ ] Full task ⏫ 📅 ${future}`, 'task-due', 'taskDue: future-far');
419419
await testComponentClasses(`- [ ] Full task ⏫ ⏳ ${future}`, 'task-scheduled', 'taskScheduled: future-far');
420420
await testComponentClasses(`- [ ] Full task ⏫ 🛫 ${future}`, 'task-start', 'taskStart: future-far');
421421
await testComponentClasses(`- [x] Done task ✅ ${future}`, 'task-done', 'taskDone: future-far');
422422
await testComponentClasses(`- [-] Canc task ❌ ${future}`, 'task-cancelled', 'taskCancelled: future-far');
423+
});
423424

425+
it('should render date component with its class and data attribute with "past-far" values', async () => {
424426
const past = DateParser.parseDate('8 days ago').format(TaskRegularExpressions.dateFormat);
425427
await testComponentClasses(`- [ ] Full task ⏫ ➕ ${past}`, 'task-created', 'taskCreated: past-far');
426428
await testComponentClasses(`- [ ] Full task ⏫ 📅 ${past}`, 'task-due', 'taskDue: past-far');

0 commit comments

Comments
 (0)