mirror of
https://github.com/multipleof4/lynchmark.git
synced 2026-01-14 00:27:55 +00:00
Feat: Return test result for output recording
This commit is contained in:
@@ -14,5 +14,6 @@ export default {
|
|||||||
if (!html.includes('<h1>') || !html.includes('<strong>') || !html.includes('<em>') || !html.includes('<ul>') || !html.includes('<code>')) {
|
if (!html.includes('<h1>') || !html.includes('<strong>') || !html.includes('<em>') || !html.includes('<ul>') || !html.includes('<code>')) {
|
||||||
throw new Error('Test Failed: HTML output missing required elements.');
|
throw new Error('Test Failed: HTML output missing required elements.');
|
||||||
}
|
}
|
||||||
|
return html;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user