hosted.test.js 398 B

1234567891011121314
  1. import assert from 'node:assert/strict';
  2. import { describe, it } from 'node:test';
  3. const VERCEL_TEST_URL = 'https://astro-vercel-image-test.vercel.app';
  4. describe('Hosted Vercel Tests', () => {
  5. it('Image endpoint works', async () => {
  6. const image = await fetch(
  7. VERCEL_TEST_URL + '/_image?href=%2F_astro%2Fpenguin.e9c64733.png&w=300&f=webp'
  8. );
  9. assert.equal(image.status, 200);
  10. });
  11. });