summaryrefslogtreecommitdiff
path: root/packages/markdown/remark/test
diff options
context:
space:
mode:
authorGravatar hippotastic <hippotastic@users.noreply.github.com> 2022-08-05 14:24:50 +0000
committerGravatar fredkbot <fred+astrobot@astro.build> 2022-08-05 14:24:50 +0000
commite7bee22d18c6f1299d99793da9bea00915d144a4 (patch)
treefefaf37eec719ccc377e47b1dd266b44fc32eb65 /packages/markdown/remark/test
parent16034f0dd5b3683e9e022dbd413e85bd18d2b031 (diff)
downloadastro-e7bee22d18c6f1299d99793da9bea00915d144a4.tar.gz
astro-e7bee22d18c6f1299d99793da9bea00915d144a4.tar.zst
astro-e7bee22d18c6f1299d99793da9bea00915d144a4.zip
[ci] format
Diffstat (limited to 'packages/markdown/remark/test')
-rw-r--r--packages/markdown/remark/test/entities.test.js11
1 files changed, 4 insertions, 7 deletions
diff --git a/packages/markdown/remark/test/entities.test.js b/packages/markdown/remark/test/entities.test.js
index dff844329..b7d551d72 100644
--- a/packages/markdown/remark/test/entities.test.js
+++ b/packages/markdown/remark/test/entities.test.js
@@ -11,13 +11,10 @@ describe('entities', () => {
});
it('should not escape entities in code blocks twice in Astro-flavored markdown', async () => {
- const { code } = await renderMarkdown(
- `\`\`\`astro\n<h1>{x && x.name || ''}!</h1>\n\`\`\``,
- {
- isAstroFlavoredMd: true,
- syntaxHighlight: false,
- }
- );
+ const { code } = await renderMarkdown(`\`\`\`astro\n<h1>{x && x.name || ''}!</h1>\n\`\`\``, {
+ isAstroFlavoredMd: true,
+ syntaxHighlight: false,
+ });
expect(code).to.equal(
`<pre is:raw><code class="language-astro">&lt;h1&gt;{x &amp;&amp; x.name || ''}!&lt;/h1&gt;\n</code></pre>`