mirror of
https://github.com/withastro/astro.git
synced 2024-12-16 21:46:22 -05:00
chore: Migrate error-bad-js.test.js to node:test (#10037)
This commit is contained in:
parent
98e5f2202f
commit
a6b62254e4
1 changed files with 4 additions and 3 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';
|
||||
|
||||
describe('Errors in JavaScript', () => {
|
||||
|
@ -26,11 +27,11 @@ describe('Errors in JavaScript', () => {
|
|||
let res = await fixture.fetch('/');
|
||||
let html = await res.text();
|
||||
|
||||
expect(html).to.include('ReferenceError');
|
||||
assert.equal(html.includes('ReferenceError'), true)
|
||||
|
||||
res = await fixture.fetch('/');
|
||||
await res.text();
|
||||
|
||||
expect(html).to.include('ReferenceError');
|
||||
assert.equal(html.includes('ReferenceError'), true)
|
||||
});
|
||||
});
|
Loading…
Reference in a new issue