mirror of
https://github.com/withastro/astro.git
synced 2025-02-03 22:29:08 -05:00
[ci] format
This commit is contained in:
parent
4db82d9c7d
commit
fd7453bc0d
1 changed files with 5 additions and 5 deletions
|
@ -1,7 +1,7 @@
|
||||||
import assert from 'node:assert/strict';
|
import assert from 'node:assert/strict';
|
||||||
import { after, before, describe, it } from 'node:test';
|
import { after, before, describe, it } from 'node:test';
|
||||||
import { loadFixture } from './test-utils.js';
|
|
||||||
import testAdapter from './test-adapter.js';
|
import testAdapter from './test-adapter.js';
|
||||||
|
import { loadFixture } from './test-utils.js';
|
||||||
|
|
||||||
describe('Errors in JavaScript', () => {
|
describe('Errors in JavaScript', () => {
|
||||||
/** @type {import('./test-utils').Fixture} */
|
/** @type {import('./test-utils').Fixture} */
|
||||||
|
@ -33,12 +33,12 @@ describe('Errors in JavaScript', () => {
|
||||||
it('Does not crash the dev server', async () => {
|
it('Does not crash the dev server', async () => {
|
||||||
let res = await fixture.fetch('/');
|
let res = await fixture.fetch('/');
|
||||||
let html = await res.text();
|
let html = await res.text();
|
||||||
|
|
||||||
assert.equal(html.includes('ReferenceError'), true);
|
assert.equal(html.includes('ReferenceError'), true);
|
||||||
|
|
||||||
res = await fixture.fetch('/');
|
res = await fixture.fetch('/');
|
||||||
await res.text();
|
await res.text();
|
||||||
|
|
||||||
assert.equal(html.includes('ReferenceError'), true);
|
assert.equal(html.includes('ReferenceError'), true);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
@ -57,7 +57,7 @@ describe('Errors in JavaScript', () => {
|
||||||
await response.text();
|
await response.text();
|
||||||
assert.ok(false, 'error expected');
|
assert.ok(false, 'error expected');
|
||||||
} catch {
|
} catch {
|
||||||
assert.ok(true, "error caught during render");
|
assert.ok(true, 'error caught during render');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Reference in a new issue