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