[ci] format
This commit is contained in:
parent
0022f46b57
commit
a70d05bd44
2 changed files with 2 additions and 2 deletions
|
@ -17,7 +17,7 @@ export async function createRedirects(
|
||||||
_redirects += `
|
_redirects += `
|
||||||
${route.pathname} /.netlify/${kind}/${entryFile} 200`;
|
${route.pathname} /.netlify/${kind}/${entryFile} 200`;
|
||||||
|
|
||||||
if(route.route === '/404') {
|
if (route.route === '/404') {
|
||||||
_redirects += `
|
_redirects += `
|
||||||
/* /.netlify/${kind}/${entryFile} 404`;
|
/* /.netlify/${kind}/${entryFile} 404`;
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,7 +21,7 @@ describe('404 page', () => {
|
||||||
|
|
||||||
it('404 route is included in the redirect file', async () => {
|
it('404 route is included in the redirect file', async () => {
|
||||||
const redir = await fixture.readFile('/_redirects');
|
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);
|
expect(redir).to.match(expr);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue