summaryrefslogtreecommitdiff
path: root/packages/integrations/netlify/test/hosted/hosted.test.js
diff options
context:
space:
mode:
authorGravatar Erika <3019731+Princesseuh@users.noreply.github.com> 2023-07-21 21:24:36 +0200
committerGravatar GitHub <noreply@github.com> 2023-07-21 21:24:36 +0200
commit471324b0a3d4dd63641fb1192ddf0488637378ff (patch)
treec21fa78dc8a752a66031484546f414a4c5de34d5 /packages/integrations/netlify/test/hosted/hosted.test.js
parente5e5cc8e70bd7e842d8cdeb8614552e621e3aea0 (diff)
downloadastro-471324b0a3d4dd63641fb1192ddf0488637378ff.tar.gz
astro-471324b0a3d4dd63641fb1192ddf0488637378ff.tar.zst
astro-471324b0a3d4dd63641fb1192ddf0488637378ff.zip
test: add setup for Vercel / Netlify tests (#7716)
Co-authored-by: Yan Thomas <61414485+Yan-Thomas@users.noreply.github.com>
Diffstat (limited to 'packages/integrations/netlify/test/hosted/hosted.test.js')
-rw-r--r--packages/integrations/netlify/test/hosted/hosted.test.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/packages/integrations/netlify/test/hosted/hosted.test.js b/packages/integrations/netlify/test/hosted/hosted.test.js
new file mode 100644
index 000000000..0ce531e4d
--- /dev/null
+++ b/packages/integrations/netlify/test/hosted/hosted.test.js
@@ -0,0 +1,13 @@
+import { expect } from 'chai';
+
+const NETLIFY_TEST_URL = 'https://curious-boba-495d6d.netlify.app';
+
+describe('Hosted Netlify Tests', () => {
+ it('Image endpoint works', async () => {
+ const image = await fetch(
+ NETLIFY_TEST_URL + '/_image?href=%2F_astro%2Fpenguin.e9c64733.png&w=300&f=webp'
+ );
+
+ expect(image.status).to.equal(200);
+ });
+});