summaryrefslogtreecommitdiff
path: root/packages/integrations/netlify/test/functions
diff options
context:
space:
mode:
authorGravatar matthewp <matthewp@users.noreply.github.com> 2023-06-05 13:05:47 +0000
committerGravatar fredkbot <fred+astrobot@astro.build> 2023-06-05 13:05:47 +0000
commiteb459577f017e2ac4f67a4c61c2e86517ce10938 (patch)
treeee6f876ec297d1c8b962c96200ce6b88918c29be /packages/integrations/netlify/test/functions
parent57f8d14c027c30919363e12c664ccff4ed64d0fc (diff)
downloadastro-eb459577f017e2ac4f67a4c61c2e86517ce10938.tar.gz
astro-eb459577f017e2ac4f67a4c61c2e86517ce10938.tar.zst
astro-eb459577f017e2ac4f67a4c61c2e86517ce10938.zip
[ci] format
Diffstat (limited to 'packages/integrations/netlify/test/functions')
-rw-r--r--packages/integrations/netlify/test/functions/redirects.test.js18
1 files changed, 13 insertions, 5 deletions
diff --git a/packages/integrations/netlify/test/functions/redirects.test.js b/packages/integrations/netlify/test/functions/redirects.test.js
index 8a6d36694..767e5b13b 100644
--- a/packages/integrations/netlify/test/functions/redirects.test.js
+++ b/packages/integrations/netlify/test/functions/redirects.test.js
@@ -18,7 +18,7 @@ describe('SSG - Redirects', () => {
site: `http://example.com`,
integrations: [testIntegration()],
redirects: {
- '/other': '/'
+ '/other': '/',
},
experimental: {
redirects: true,
@@ -31,14 +31,22 @@ describe('SSG - Redirects', () => {
let redirects = await fixture.readFile('/_redirects');
let parts = redirects.split(/\s+/);
expect(parts).to.deep.equal([
- '/other', '/', '301',
+ '/other',
+ '/',
+ '301',
// This uses the dynamic Astro.redirect, so we don't know that it's a redirect
// until runtime. This is correct!
- '/nope', '/.netlify/functions/entry', '200',
- '/', '/.netlify/functions/entry', '200',
+ '/nope',
+ '/.netlify/functions/entry',
+ '200',
+ '/',
+ '/.netlify/functions/entry',
+ '200',
// A real route
- '/team/articles/*', '/.netlify/functions/entry', '200',
+ '/team/articles/*',
+ '/.netlify/functions/entry',
+ '200',
]);
});
});