Skip to content

Commit 489241d

Browse files
committed
test: call Grouper directly
1 parent 5cfa4cc commit 489241d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/TaskGroups.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,8 @@ describe('Grouping tasks', () => {
252252
const inputs = [a, b];
253253

254254
const groupByTags: GrouperFunction = (task: Task) => task.tags;
255-
const grouper = new Grouper('custom tag grouper', groupByTags, false);
255+
const groupComparator = new TagsField().comparator();
256+
const grouper = new Grouper('custom tag grouper', groupByTags, false, groupComparator);
256257
const groups = new TaskGroups([grouper], inputs);
257258

258259
expect(groups.totalTasksCount()).toEqual(2);

0 commit comments

Comments
 (0)