From fd7453bc0da2138e72941d4af17eddd51f252ffd Mon Sep 17 00:00:00 2001 From: Matthew Phillips Date: Mon, 26 Feb 2024 08:37:43 +0000 Subject: [PATCH] [ci] format --- packages/astro/test/error-bad-js.test.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/astro/test/error-bad-js.test.js b/packages/astro/test/error-bad-js.test.js index a290609c23..3ef37208be 100644 --- a/packages/astro/test/error-bad-js.test.js +++ b/packages/astro/test/error-bad-js.test.js @@ -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'); } }); });