Skip to content

Commit

Permalink
test: . Remove {} now that we are only writing one output file
Browse files Browse the repository at this point in the history
  • Loading branch information
claremacrae committed Nov 22, 2024
1 parent a863ab2 commit eb0a408
Showing 1 changed file with 6 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit eb0a408

Please sign in to comment.