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:
FredKSchott 2022-08-11 23:29:45 +00:00 committed by fredkbot
parent 0022f46b57
commit a70d05bd44
2 changed files with 2 additions and 2 deletions

View file

@ -17,7 +17,7 @@ export async function createRedirects(
_redirects += `
${route.pathname} /.netlify/${kind}/${entryFile} 200`;
if(route.route === '/404') {
if (route.route === '/404') {
_redirects += `
/* /.netlify/${kind}/${entryFile} 404`;
}

View file

@ -21,7 +21,7 @@ describe('404 page', () => {
it('404 route is included in the redirect file', async () => {
const redir = await fixture.readFile('/_redirects');
const expr = new RegExp("/* /.netlify/functions/entry 404");
const expr = new RegExp('/* /.netlify/functions/entry 404');
expect(redir).to.match(expr);
});
});