mirror of
https://github.com/withastro/astro.git
synced 2024-12-23 21:53:55 -05:00
chore: Migrate error-non-error.test.js to node:test (#10039)
This commit is contained in:
parent
9e3487e13c
commit
98e5f2202f
1 changed files with 4 additions and 4 deletions
|
@ -1,4 +1,5 @@
|
||||||
import { expect } from 'chai';
|
import assert from 'node:assert/strict';
|
||||||
|
import { after, describe, before, it } from 'node:test';
|
||||||
import { loadFixture } from './test-utils.js';
|
import { loadFixture } from './test-utils.js';
|
||||||
|
|
||||||
describe('Can handle errors that are not instanceof Error', () => {
|
describe('Can handle errors that are not instanceof Error', () => {
|
||||||
|
@ -23,11 +24,10 @@ describe('Can handle errors that are not instanceof Error', () => {
|
||||||
let res = await fixture.fetch('/');
|
let res = await fixture.fetch('/');
|
||||||
let html = await res.text();
|
let html = await res.text();
|
||||||
|
|
||||||
expect(html).to.include('Error');
|
assert.equal(html.includes('Error'), true);
|
||||||
|
|
||||||
res = await fixture.fetch('/');
|
res = await fixture.fetch('/');
|
||||||
await res.text();
|
await res.text();
|
||||||
|
|
||||||
expect(html).to.include('Error');
|
assert.equal(html.includes('Error'), true);
|
||||||
});
|
});
|
||||||
});
|
});
|
Loading…
Reference in a new issue