Skip to content

Commit

Permalink
test: ! Adjust more test data from investigation of #2863
Browse files Browse the repository at this point in the history
  • Loading branch information
claremacrae committed Jun 21, 2024
1 parent d45efeb commit b0175ec
Show file tree
Hide file tree
Showing 8 changed files with 698 additions and 0 deletions.
10 changes: 10 additions & 0 deletions resources/sample_vaults/Tasks-Demo/Test Data/callout_custom.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# callout_custom

> [!callout_custom]
> - [ ] #task Task in 'callout_custom'
> - [ ] #task Task indented in 'callout_custom'
```tasks
not done
path includes {{query.file.path}}
```
10 changes: 10 additions & 0 deletions resources/sample_vaults/Tasks-Demo/Test Data/callout_labelled.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# callout_labelled

> [!todo] callout_labelled
> - [ ] #task Task in 'callout_labelled'
> - [ ] #task Task indented in 'callout_labelled'
```tasks
not done
path includes {{query.file.path}}
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
> [!Calendar]+ MONTH
>> [!Check]+ GROUP
>>> [!Attention]+ Correction TITLE
>>> Some stuff goes here
>>> - [ ] #task Correction1
>>> - [ ] #task Correction2
>>> - [ ] #task Correction3
>>> - [ ] #task Correction4
```tasks
not done
path includes {{query.file.path}}
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
> [!Calendar]+
>> [!Check]+
>>> [!Attention]+
>>> Some stuff goes here
>>> - [ ] #task Correction1
>>> - [ ] #task Correction2
>>> - [ ] #task Correction3
>>> - [ ] #task Correction4
```tasks
not done
path includes {{query.file.path}}
```
147 changes: 147 additions & 0 deletions tests/Obsidian/__test_data__/callout_custom.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,147 @@
export const callout_custom = {
filePath: 'Test Data/callout_custom.md',
fileContents:
'# callout_custom\n' +
'\n' +
'> [!callout_custom]\n' +
"> - [ ] #task Task in 'callout_custom'\n" +
"> - [ ] #task Task indented in 'callout_custom'\n" +
'\n' +
'```tasks\n' +
'not done\n' +
'path includes {{query.file.path}}\n' +
'```\n',
cachedMetadata: {
tags: [
{
position: {
start: {
line: 3,
col: 8,
offset: 46,
},
end: {
line: 3,
col: 13,
offset: 51,
},
},
tag: '#task',
},
{
position: {
start: {
line: 4,
col: 12,
offset: 89,
},
end: {
line: 4,
col: 17,
offset: 94,
},
},
tag: '#task',
},
],
headings: [
{
position: {
start: {
line: 0,
col: 0,
offset: 0,
},
end: {
line: 0,
col: 16,
offset: 16,
},
},
heading: 'callout_custom',
level: 1,
},
],
sections: [
{
type: 'heading',
position: {
start: {
line: 0,
col: 0,
offset: 0,
},
end: {
line: 0,
col: 16,
offset: 16,
},
},
},
{
type: 'callout',
position: {
start: {
line: 2,
col: 0,
offset: 18,
},
end: {
line: 4,
col: 51,
offset: 128,
},
},
},
{
type: 'code',
position: {
start: {
line: 6,
col: 0,
offset: 130,
},
end: {
line: 9,
col: 3,
offset: 185,
},
},
},
],
listItems: [
{
position: {
start: {
line: 3,
col: 2,
offset: 40,
},
end: {
line: 3,
col: 38,
offset: 76,
},
},
parent: -3,
task: ' ',
},
{
position: {
start: {
line: 4,
col: 4,
offset: 81,
},
end: {
line: 4,
col: 51,
offset: 128,
},
},
parent: 3,
task: ' ',
},
],
},
};
147 changes: 147 additions & 0 deletions tests/Obsidian/__test_data__/callout_labelled.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,147 @@
export const callout_labelled = {
filePath: 'Test Data/callout_labelled.md',
fileContents:
'# callout_labelled\n' +
'\n' +
'> [!todo] callout_labelled\n' +
"> - [ ] #task Task in 'callout_labelled'\n" +
"> - [ ] #task Task indented in 'callout_labelled'\n" +
'\n' +
'```tasks\n' +
'not done\n' +
'path includes {{query.file.path}}\n' +
'```\n',
cachedMetadata: {
tags: [
{
position: {
start: {
line: 4,
col: 8,
offset: 96,
},
end: {
line: 4,
col: 13,
offset: 101,
},
},
tag: '#task',
},
{
position: {
start: {
line: 5,
col: 10,
offset: 152,
},
end: {
line: 5,
col: 15,
offset: 157,
},
},
tag: '#task',
},
],
headings: [
{
position: {
start: {
line: 0,
col: 0,
offset: 0,
},
end: {
line: 0,
col: 18,
offset: 18,
},
},
heading: 'callout_labelled',
level: 1,
},
],
sections: [
{
type: 'heading',
position: {
start: {
line: 0,
col: 0,
offset: 0,
},
end: {
line: 0,
col: 18,
offset: 18,
},
},
},
{
type: 'callout',
position: {
start: {
line: 2,
col: 0,
offset: 20,
},
end: {
line: 4,
col: 53,
offset: 141,
},
},
},
{
type: 'code',
position: {
start: {
line: 6,
col: 0,
offset: 143,
},
end: {
line: 9,
col: 3,
offset: 198,
},
},
},
],
listItems: [
{
position: {
start: {
line: 4,
col: 2,
offset: 90,
},
end: {
line: 4,
col: 40,
offset: 128,
},
},
parent: -4,
task: ' ',
},
{
position: {
start: {
line: 5,
col: 2,
offset: 144,
},
end: {
line: 5,
col: 51,
offset: 193,
},
},
parent: 4,
task: ' ',
},
],
},
};
Loading

0 comments on commit b0175ec

Please sign in to comment.