0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-01-20 22:12:38 -05:00

[ci] format

This commit is contained in:
Matthew Phillips 2024-02-26 08:37:43 +00:00 committed by astrobot-houston
parent 4db82d9c7d
commit fd7453bc0d

View file

@ -1,7 +1,7 @@
import assert from 'node:assert/strict';
import { after, before, describe, it } from 'node:test';
import { loadFixture } from './test-utils.js';
import testAdapter from './test-adapter.js';
import { loadFixture } from './test-utils.js';
describe('Errors in JavaScript', () => {
/** @type {import('./test-utils').Fixture} */
@ -33,12 +33,12 @@ describe('Errors in JavaScript', () => {
it('Does not crash the dev server', async () => {
let res = await fixture.fetch('/');
let html = await res.text();
assert.equal(html.includes('ReferenceError'), true);
res = await fixture.fetch('/');
await res.text();
assert.equal(html.includes('ReferenceError'), true);
});
});
@ -57,7 +57,7 @@ describe('Errors in JavaScript', () => {
await response.text();
assert.ok(false, 'error expected');
} catch {
assert.ok(true, "error caught during render");
assert.ok(true, 'error caught during render');
}
});
});