0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-02-17 22:44:24 -05:00

chore: Migrate custom-404-injected-from-dep.test.js to node:test (#10033)

This commit is contained in:
ktym4a 2024-02-08 17:23:27 +07:00 committed by GitHub
parent 3cc04fd3ec
commit ec0ac4a840
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,5 +1,6 @@
import { expect } from 'chai';
import { loadFixture } from './test-utils.js';
import assert from 'node:assert/strict';
import { describe, before, it } from 'node:test';
describe('Custom 404 with injectRoute from dependency', () => {
describe('build', () => {
@ -16,7 +17,7 @@ describe('Custom 404 with injectRoute from dependency', () => {
it('Build succeeds', async () => {
const html = await fixture.readFile('/404.html');
expect(html).to.contain('<!DOCTYPE html>');
assert.strictEqual(html.includes('<!DOCTYPE html>'), true);
});
});
});