0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-16 21:46:22 -05:00

[ci] format

This commit is contained in:
natemoo-re 2022-03-24 19:44:54 +00:00 committed by GitHub Actions
parent a49f0490c0
commit eb4ac82acf

View file

@ -18,16 +18,16 @@ describe('Error display', () => {
// TODO: unskip test once vite@2.9.x lands // TODO: unskip test once vite@2.9.x lands
// See pre-integration system test: https://github.com/withastro/astro/blob/0f376a7c52d3a22ff32b33e0afc34dd306ed70c4/packages/astro/test/errors.test.js // See pre-integration system test: https://github.com/withastro/astro/blob/0f376a7c52d3a22ff32b33e0afc34dd306ed70c4/packages/astro/test/errors.test.js
it.skip('properly detect syntax errors in template', async () => { it.skip('properly detect syntax errors in template', async () => {
try { try {
devServer = await fixture.startDevServer(); devServer = await fixture.startDevServer();
} catch (err) { } catch (err) {
return; return;
} }
// This is new behavior in vite@2.9.x, previously the server would throw on startup // This is new behavior in vite@2.9.x, previously the server would throw on startup
const res = await fixture.fetch('/astro-syntax-error'); const res = await fixture.fetch('/astro-syntax-error');
await devServer.stop(); await devServer.stop();
expect(res.status).to.equal(500, `Successfully responded with 500 Error for invalid file`); expect(res.status).to.equal(500, `Successfully responded with 500 Error for invalid file`);
}); });
}); });
}); });