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:
parent
40c95b4436
commit
c9cf8a93fb
1 changed files with 3 additions and 2 deletions
|
@ -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');
|
||||
});
|
||||
});
|
Loading…
Add table
Reference in a new issue