Skip to content

Commit

Permalink
test: don't test if no markdown or ast
Browse files Browse the repository at this point in the history
  • Loading branch information
agoose77 committed Oct 18, 2024
1 parent f2650d2 commit 05333a8
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -359,12 +359,14 @@ files.forEach((file) => {
if (html && !html.endsWith('\n')) {
html = html.concat('\n');
}
jsonTestCases = jsonTestCases.concat({
title: `${file.replace('.yml', '')}: ${testCase.title}`,
mdast: testCase.mdast,
myst: testCase.myst,
html,
});
if (testCase.myst !== undefined && testCase.mdast !== undefined) {
jsonTestCases.push({
title: `${file.replace('.yml', '')}: ${testCase.title}`,
mdast: testCase.mdast,
myst: testCase.myst,
html,
});
}
}
if (testCase.id) {
const outFile = join(directory, `${testCase.id}.md`);
Expand Down

0 comments on commit 05333a8

Please sign in to comment.