@@ -31,7 +31,9 @@ describe('Grouping tasks', () => {
31
31
// Assert
32
32
expect ( groups . groupers ) . toStrictEqual ( grouping ) ;
33
33
expect ( groups . toString ( ) ) . toMatchInlineSnapshot ( `
34
- "
34
+ "Groupers (if any):
35
+ - path
36
+
35
37
Group names: [file1]
36
38
#### file1
37
39
- [ ] b
@@ -64,7 +66,8 @@ describe('Grouping tasks', () => {
64
66
// Assert
65
67
// No grouping specified, so no headings generated
66
68
expect ( groups . toString ( ) ) . toMatchInlineSnapshot ( `
67
- "
69
+ "Groupers (if any):
70
+
68
71
Group names: []
69
72
- [ ] a 📅 1970-01-01
70
73
- [ ] b 📅 1970-01-02
@@ -109,7 +112,9 @@ describe('Grouping tasks', () => {
109
112
const grouping = [ new PathField ( ) . createNormalGrouper ( ) ] ;
110
113
const groups = new TaskGroups ( grouping , inputs ) ;
111
114
expect ( groups . toString ( ) ) . toMatchInlineSnapshot ( `
112
- "
115
+ "Groupers (if any):
116
+ - path
117
+
113
118
Group names: [a/b/c]
114
119
#### a/b/c
115
120
- [ ] first file path, alphabetically
@@ -147,7 +152,9 @@ describe('Grouping tasks', () => {
147
152
const grouping = [ new FilenameField ( ) . createNormalGrouper ( ) ] ;
148
153
const groups = new TaskGroups ( grouping , inputs ) ;
149
154
expect ( groups . toString ( ) ) . toMatchInlineSnapshot ( `
150
- "
155
+ "Groupers (if any):
156
+ - filename
157
+
151
158
Group names: [[[9 something]]]
152
159
#### [[9 something]]
153
160
- [ ] first, as 9 is less then 10
@@ -178,7 +185,9 @@ describe('Grouping tasks', () => {
178
185
// Assert
179
186
// No grouping specified, so no headings generated
180
187
expect ( groups . toString ( ) ) . toMatchInlineSnapshot ( `
181
- "
188
+ "Groupers (if any):
189
+ - due reverse
190
+
182
191
Group names: [2023-07-08 Saturday]
183
192
#### 2023-07-08 Saturday
184
193
- [ ] b 📅 2023-07-08
@@ -211,7 +220,9 @@ describe('Grouping tasks', () => {
211
220
const grouping = [ new TagsField ( ) . createNormalGrouper ( ) ] ;
212
221
const groups = new TaskGroups ( grouping , inputs ) ;
213
222
expect ( groups . toString ( ) ) . toMatchInlineSnapshot ( `
214
- "
223
+ "Groupers (if any):
224
+ - tags
225
+
215
226
Group names: [#group1]
216
227
#### #group1
217
228
- [ ] Task 1 #group1
@@ -257,7 +268,10 @@ describe('Grouping tasks', () => {
257
268
258
269
// Assert
259
270
expect ( groups . toString ( ) ) . toMatchInlineSnapshot ( `
260
- "
271
+ "Groupers (if any):
272
+ - folder reverse
273
+ - filename
274
+
261
275
Group names: [folder\\_b/folder\\_c/,[[file_c]]]
262
276
#### folder\\_b/folder\\_c/
263
277
##### [[file_c]]
@@ -303,7 +317,10 @@ describe('Grouping tasks', () => {
303
317
// This result is incorrect. The '2 TODO' heading is shown before
304
318
// the last group instead of before the first one.
305
319
expect ( groups . toString ( ) ) . toMatchInlineSnapshot ( `
306
- "
320
+ "Groupers (if any):
321
+ - status.type
322
+ - happens
323
+
307
324
Group names: [2 TODO,2022-09-19 Monday]
308
325
#### 2 TODO
309
326
##### 2022-09-19 Monday
0 commit comments