Skip to content

Commit ec0a6af

Browse files
committed
test: Show unreported bug: missing child of numbered list item
1 parent 7d8b3c3 commit ec0a6af

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/Obsidian/Cache.test.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,14 @@ describe('cache', () => {
139139
3. List item in 'numbered_list_items_standard'
140140
"
141141
`);
142+
143+
// TODO Error: Task 2 should have a child list item:
144+
expect(printRoots(tasks)).toMatchInlineSnapshot(`
145+
"1. [ ] #task Task 1 in 'numbered_list_items_standard' : Task
146+
1. Sub-item 1 : ListItem
147+
2. [ ] #task Task 2 in 'numbered_list_items_standard' : Task
148+
"
149+
`);
142150
expect(tasks.length).toEqual(2);
143151
});
144152

@@ -157,6 +165,8 @@ describe('cache', () => {
157165
3) List item in 'numbered_list_items_with_paren'
158166
"
159167
`);
168+
169+
expect(printRoots(tasks)).toMatchInlineSnapshot('""');
160170
expect(tasks.length).toEqual(2);
161171
});
162172

0 commit comments

Comments
 (0)