Skip to content

Commit db5a714

Browse files
committed
test: - Add some integer test values
1 parent 9c55037 commit db5a714

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/Query/Group/TaskGroups.test.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,9 +243,12 @@ describe('Grouping tasks', () => {
243243
jest.setSystemTime(new Date('2025-03-07'));
244244

245245
const lines = [
246+
'- [ ] 0 📅 2025-02-28 🔺 ', // urgency: 21
246247
'- [ ] 1 📅 2025-03-07 ⏳ 2025-03-07', // urgency: 15.75
247248
'- [ ] 2 📅 2025-03-08 ⏳ 2025-03-07', // urgency: 15.292857142857141
248249
'- [ ] 3 📅 2025-03-09 ⏳ 2025-03-07', // urgency: 14.835714285714285
250+
'- [ ] 4 ⏫ 🛫 2025-03-18 ', // urgency: 3
251+
'- [ ] 5 🔽 ', // urgency: 0
249252
];
250253
const tasks = fromLines({ lines });
251254

@@ -257,7 +260,7 @@ describe('Grouping tasks', () => {
257260

258261
const groups: TaskGroups = makeTasksGroups(grouping, tasks);
259262
const groupHeadings = groups.groups.map((group: TaskGroup) => group.groups[0]);
260-
expect(groupHeadings).toEqual(['14.83571', '15.29286', '15.75000']);
263+
expect(groupHeadings).toEqual(['0', '3', '14.83571', '15.29286', '15.75000', '21']);
261264
});
262265

263266
it('handles tasks matching multiple groups correctly', () => {

0 commit comments

Comments
 (0)