0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-03-31 23:31:30 -05:00

chore: migrate static-build-code-component.test.js to node:test (#10045)

This commit is contained in:
Ming-jun Lu 2024-02-08 18:18:51 +08:00 committed by GitHub
parent 40c95b4436
commit c9cf8a93fb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,5 +1,6 @@
import { expect } from 'chai';
import * as cheerio from 'cheerio';
import assert from 'node:assert/strict';
import { before, describe, it } from 'node:test';
import { loadFixture } from './test-utils.js';
describe('Code component inside static build', () => {
@ -15,6 +16,6 @@ describe('Code component inside static build', () => {
it('Is able to build successfully', async () => {
const html = await fixture.readFile('/index.html');
const $ = cheerio.load(html);
expect($('pre').length, 1, 'pre tag loaded');
assert.equal($('pre').length, 1, 'pre tag loaded');
});
});