diff --git a/packages/astro/test/astro-markdown.test.js b/packages/astro/test/astro-markdown.test.js index d98dabe18c..ecd6074ec0 100644 --- a/packages/astro/test/astro-markdown.test.js +++ b/packages/astro/test/astro-markdown.test.js @@ -237,12 +237,16 @@ describe('Astro Markdown', () => { it('Exposes raw markdown content', async () => { const { raw } = JSON.parse(await fixture.readFile('/raw-content.json')); - expect(fixLineEndings(raw)).to.equal(`\n## With components\n\n### Non-hydrated\n\n\n\n### Hydrated\n\n\n\n`); + expect(fixLineEndings(raw)).to.equal( + `\n## With components\n\n### Non-hydrated\n\n\n\n### Hydrated\n\n\n\n` + ); }); - + it('Exposes HTML parser for raw markdown content', async () => { const { compiled } = JSON.parse(await fixture.readFile('/raw-content.json')); - - expect(fixLineEndings(compiled)).to.equal(`

With components

\n

Non-hydrated

\n\n

Hydrated

\n\n`); - }) + + expect(fixLineEndings(compiled)).to.equal( + `

With components

\n

Non-hydrated

\n\n

Hydrated

\n\n` + ); + }); });