0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-23 21:53:55 -05:00

chore: Migrate error-bad-js.test.js to node:test (#10037)

This commit is contained in:
Mohamed 2024-02-08 12:22:40 +02:00 committed by GitHub
parent 98e5f2202f
commit a6b62254e4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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)
});
});