Skip to content

Commit

Permalink
fix: descriptionHtml rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
noomorph committed Feb 19, 2024
1 parent 4562857 commit 064ebc5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/options/default-options/testCase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ export const testCase: ResolvedTestCaseCustomizer = {
const snippet = code ? '```javascript\n' + code + '\n```' : '';
return [text, snippet].filter(Boolean).join('\n\n');
},
descriptionHtml: () => void 0,
descriptionHtml: ({ testCaseMetadata }) =>
testCaseMetadata.descriptionHtml?.join('\n'),
start: ({ testCase, testCaseMetadata }) =>
testCaseMetadata.start ??
(testCaseMetadata.stop ?? Date.now()) - (testCase.duration ?? 0),
Expand Down

0 comments on commit 064ebc5

Please # to comment.