Skip to content

Commit c6cb8dd

Browse files
committed
test: - Remove Obsidian version number from tests/Obsidian/__test_data__/
It was wasting time when updating Obsidian whilst on a branch, and when @ilandikov were running different Obsidian versions.
1 parent 033f73a commit c6cb8dd

File tree

74 files changed

+1
-75
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+1
-75
lines changed

resources/sample_vaults/Tasks-Demo/_meta/templater_scripts/convert_test_data_markdown_to_js.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,9 @@ async function convertMarkdownFileToTestFunction(filePath, tp) {
5353

5454
const fileContents = await vault.read(tFile);
5555
const cachedMetadata = app.metadataCache.getFileCache(tFile);
56-
const obsidianApiVersion = tp.obsidian.apiVersion;
5756
const getAllTags = tp.obsidian.getAllTags(cachedMetadata);
5857
const parseFrontMatterTags = tp.obsidian.parseFrontMatterTags(cachedMetadata.frontmatter);
59-
const data = { filePath, fileContents, cachedMetadata, obsidianApiVersion, getAllTags, parseFrontMatterTags };
58+
const data = { filePath, fileContents, cachedMetadata, getAllTags, parseFrontMatterTags };
6059

6160
const filename = getBasename(filePath);
6261
if (filename.includes(' ')) {

tests/Obsidian/__test_data__/blockquote.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,5 @@
123123
"#task",
124124
"#task"
125125
],
126-
"obsidianApiVersion": "1.8.4",
127126
"parseFrontMatterTags": null
128127
}

tests/Obsidian/__test_data__/callout.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,5 @@
138138
"#task",
139139
"#task"
140140
],
141-
"obsidianApiVersion": "1.8.4",
142141
"parseFrontMatterTags": null
143142
}

tests/Obsidian/__test_data__/callout_custom.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,5 @@
138138
"#task",
139139
"#task"
140140
],
141-
"obsidianApiVersion": "1.8.4",
142141
"parseFrontMatterTags": null
143142
}

tests/Obsidian/__test_data__/callout_labelled.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,5 @@
138138
"#task",
139139
"#task"
140140
],
141-
"obsidianApiVersion": "1.8.4",
142141
"parseFrontMatterTags": null
143142
}

tests/Obsidian/__test_data__/callouts_nested_issue_2890_labelled.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,5 @@
169169
"#task",
170170
"#task"
171171
],
172-
"obsidianApiVersion": "1.8.4",
173172
"parseFrontMatterTags": null
174173
}

tests/Obsidian/__test_data__/callouts_nested_issue_2890_unlabelled.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,5 @@
169169
"#task",
170170
"#task"
171171
],
172-
"obsidianApiVersion": "1.8.4",
173172
"parseFrontMatterTags": null
174173
}

tests/Obsidian/__test_data__/comments_html_style.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,5 @@
153153
"#task",
154154
"#task"
155155
],
156-
"obsidianApiVersion": "1.8.4",
157156
"parseFrontMatterTags": null
158157
}

tests/Obsidian/__test_data__/comments_markdown_style.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,5 @@
204204
"#i-am-parsed-by-obsidian",
205205
"#task"
206206
],
207-
"obsidianApiVersion": "1.8.4",
208207
"parseFrontMatterTags": null
209208
}

tests/Obsidian/__test_data__/docs_sample_for_task_properties_reference.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,6 @@
244244
"#tag-from-task-line",
245245
"#task"
246246
],
247-
"obsidianApiVersion": "1.8.4",
248247
"parseFrontMatterTags": [
249248
"#tag-from-file-properties"
250249
]

0 commit comments

Comments
 (0)