Skip to content

Commit

Permalink
test: ! Adjust callout.md (and so callout.ts) to add query to check f…
Browse files Browse the repository at this point in the history
…ound tasks
  • Loading branch information
claremacrae committed Jun 21, 2024
1 parent e4da5f9 commit d45efeb
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
5 changes: 5 additions & 0 deletions resources/sample_vaults/Tasks-Demo/Test Data/callout.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,8 @@
> [!todo]
> - [ ] #task Task in 'callout'
> - [ ] #task Task indented in 'callout'
```tasks
not done
path includes {{query.file.path}}
```
22 changes: 21 additions & 1 deletion tests/Obsidian/__test_data__/callout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@ export const callout = {
'\n' +
'> [!todo]\n' +
"> - [ ] #task Task in 'callout'\n" +
"> - [ ] #task Task indented in 'callout'\n",
"> - [ ] #task Task indented in 'callout'\n" +
'\n' +
'```tasks\n' +
'not done\n' +
'path includes {{query.file.path}}\n' +
'```\n',
cachedMetadata: {
tags: [
{
Expand Down Expand Up @@ -88,6 +93,21 @@ export const callout = {
},
},
},
{
type: 'code',
position: {
start: {
line: 6,
col: 0,
offset: 99,
},
end: {
line: 9,
col: 3,
offset: 154,
},
},
},
],
listItems: [
{
Expand Down

0 comments on commit d45efeb

Please sign in to comment.