diff options
Diffstat (limited to 'packages/astro/test/content-layer.test.js')
-rw-r--r-- | packages/astro/test/content-layer.test.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/packages/astro/test/content-layer.test.js b/packages/astro/test/content-layer.test.js index 268f03dc7..caf59459f 100644 --- a/packages/astro/test/content-layer.test.js +++ b/packages/astro/test/content-layer.test.js @@ -90,6 +90,11 @@ describe('Content Layer', () => { ]); }); + it('can render markdown in loaders', async () => { + const html = await fixture.readFile('/index.html'); + assert.ok(cheerio.load(html)('section h1').text().includes('heading 1')); + }); + it('handles negative matches in glob() loader', async () => { assert.ok(json.hasOwnProperty('probes')); assert.ok(Array.isArray(json.probes)); |