Skip to content

Commit

Permalink
[ci] format
Browse files Browse the repository at this point in the history
  • Loading branch information
FredKSchott authored and astrobot-houston committed Aug 11, 2022
1 parent 0022f46 commit a70d05b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/integrations/netlify/src/shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`;
}
Expand Down
2 changes: 1 addition & 1 deletion packages/integrations/netlify/test/functions/404.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
});

0 comments on commit a70d05b

Please sign in to comment.