Skip to content

Commit

Permalink
[ci] format
Browse files Browse the repository at this point in the history
  • Loading branch information
ematipico authored and astrobot-houston committed Feb 26, 2024
1 parent 4db82d9 commit fd7453b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/astro/test/error-bad-js.test.js
Original file line number Diff line number Diff line change
@@ -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} */
Expand Down Expand Up @@ -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);
});
});
Expand All @@ -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');
}
});
});
Expand Down

0 comments on commit fd7453b

Please sign in to comment.