fix(docs-infra): refactor unit test

Replace two toContain assertions with a single toMatch
using a multiline regex, per reviewer suggestion.
This commit is contained in:
Sam Severance
2026-05-05 12:09:41 -04:00
committed by Jessica Janiuk
parent 7febf40e0d
commit bb1274d6ac
@@ -60,7 +60,6 @@ describe('markdown to html', () => {
it('should deindent inline code blocks correctly', () => {
const codeBlock = markdownDocument.querySelectorAll('.docs-code')[6]?.querySelector('code');
expect(codeBlock?.textContent).not.toContain(' // bar');
expect(codeBlock?.textContent).toContain(' // bar');
expect(codeBlock?.textContent).toMatch(/^ \/\/ bar/m);
});
});