From eb0a408fc15b56d6d3a0ce3ba61c60ef2da92b6b Mon Sep 17 00:00:00 2001 From: Clare Macrae Date: Fri, 22 Nov 2024 11:15:42 +0000 Subject: [PATCH] test: . Remove {} now that we are only writing one output file --- .../convert_test_data_markdown_to_js.js | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/resources/sample_vaults/Tasks-Demo/_meta/templater_scripts/convert_test_data_markdown_to_js.js b/resources/sample_vaults/Tasks-Demo/_meta/templater_scripts/convert_test_data_markdown_to_js.js index e3c4a248f1..de83282f87 100644 --- a/resources/sample_vaults/Tasks-Demo/_meta/templater_scripts/convert_test_data_markdown_to_js.js +++ b/resources/sample_vaults/Tasks-Demo/_meta/templater_scripts/convert_test_data_markdown_to_js.js @@ -72,15 +72,12 @@ async function convertMarkdownFileToTestFunction(filePath, tp) { return ''; } - // Write data as JSON file - { - const testSourceFile = getOutputFilePath(`__test_data__/${filename}.json`); - - // Sort keys in the data object to ensure stable order - const sortedData = sortObjectKeys(data); - const content = JSON.stringify(sortedData, null, 2); - writeFile(testSourceFile, content); - } + const testSourceFile = getOutputFilePath(`__test_data__/${filename}.json`); + + // Sort keys in the data object to ensure stable order + const sortedData = sortObjectKeys(data); + const content = JSON.stringify(sortedData, null, 2); + writeFile(testSourceFile, content); } async function writeListOfAllTestFunctions(files) {