0
Fork 0
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:
voxel!() 2024-02-08 02:25:48 -08:00 committed by GitHub
parent 3d32724003
commit a941de1d6d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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');
});
});