diff options
author | 2023-01-11 12:51:31 -0500 | |
---|---|---|
committer | 2023-01-11 12:51:31 -0500 | |
commit | 52209ca2ad72a30854947dcb3a90ab4db0ac0a6f (patch) | |
tree | 707b90eee0464eedfa2dbc10d01500c73d6661c7 /packages/markdown/remark/test/entities.test.js | |
parent | 665a2c2225e42881f5a9550599e8f3fc1deea0b4 (diff) | |
download | astro-52209ca2ad72a30854947dcb3a90ab4db0ac0a6f.tar.gz astro-52209ca2ad72a30854947dcb3a90ab4db0ac0a6f.tar.zst astro-52209ca2ad72a30854947dcb3a90ab4db0ac0a6f.zip |
[Content collections] Remove experimental flag (#5825)
* refactor: remove experimental.cc from core
* chore: remove experimental flag from tests
* fix: mock contentDir in remark tests
* fix: check vfile.path in rel-image-error plugin
* fix: move .astro/ excludes to all test/fixtures
* fix: include test/**/fixtures in ignore
* chore: changeset
Diffstat (limited to 'packages/markdown/remark/test/entities.test.js')
-rw-r--r-- | packages/markdown/remark/test/entities.test.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/packages/markdown/remark/test/entities.test.js b/packages/markdown/remark/test/entities.test.js index d35ed3a89..acaf71be1 100644 --- a/packages/markdown/remark/test/entities.test.js +++ b/packages/markdown/remark/test/entities.test.js @@ -1,9 +1,13 @@ import { renderMarkdown } from '../dist/index.js'; import { expect } from 'chai'; +import { mockRenderMarkdownParams } from './test-utils.js'; describe('entities', () => { it('should not unescape entities in regular Markdown', async () => { - const { code } = await renderMarkdown(`<i>This should NOT be italic</i>`, {}); + const { code } = await renderMarkdown( + `<i>This should NOT be italic</i>`, + mockRenderMarkdownParams + ); expect(code).to.equal(`<p><i>This should NOT be italic</i></p>`); }); |