Skip to content

Commit eb0a408

Browse files
committed
test: . Remove {} now that we are only writing one output file
1 parent a863ab2 commit eb0a408

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

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

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -72,15 +72,12 @@ async function convertMarkdownFileToTestFunction(filePath, tp) {
7272
return '';
7373
}
7474

75-
// Write data as JSON file
76-
{
77-
const testSourceFile = getOutputFilePath(`__test_data__/${filename}.json`);
78-
79-
// Sort keys in the data object to ensure stable order
80-
const sortedData = sortObjectKeys(data);
81-
const content = JSON.stringify(sortedData, null, 2);
82-
writeFile(testSourceFile, content);
83-
}
75+
const testSourceFile = getOutputFilePath(`__test_data__/${filename}.json`);
76+
77+
// Sort keys in the data object to ensure stable order
78+
const sortedData = sortObjectKeys(data);
79+
const content = JSON.stringify(sortedData, null, 2);
80+
writeFile(testSourceFile, content);
8481
}
8582

8683
async function writeListOfAllTestFunctions(files) {

0 commit comments

Comments
 (0)