mirror of
https://github.com/withastro/astro.git
synced 2025-02-17 22:44:24 -05:00
chore: Migrate ssr-markdown.test.js
to node:test
(#10027)
This commit is contained in:
parent
3d32724003
commit
a941de1d6d
1 changed files with 3 additions and 2 deletions
|
@ -1,4 +1,5 @@
|
|||
import { expect } from 'chai';
|
||||
import assert from 'node:assert/strict';
|
||||
import { describe, before, it } from 'node:test';
|
||||
import { load as cheerioLoad } from 'cheerio';
|
||||
import { loadFixture } from './test-utils.js';
|
||||
import testAdapter from './test-adapter.js';
|
||||
|
@ -27,6 +28,6 @@ describe('Markdown pages in SSR', () => {
|
|||
it('Renders markdown pages correctly', async () => {
|
||||
const html = await fetchHTML('/post');
|
||||
const $ = cheerioLoad(html);
|
||||
expect($('#subheading').text()).to.equal('Subheading');
|
||||
assert.strictEqual($('#subheading').text(), 'Subheading');
|
||||
});
|
||||
});
|
Loading…
Add table
Reference in a new issue