Something went wrong. Try again.
Monorepo for Aesthetic.Computer aesthetic.computer
Something went wrong. Try again.
JavaScript
12345678910111213141516171819202122232425import test from "node:test";import assert from "node:assert/strict";import { handler } from "../netlify/functions/index.mjs";
test("favicon.ico redirects to the platform SVG", async () => { const response = await handler({ path: "/favicon.ico", headers: {}, queryStringParameters: {}, });
assert.equal(response.statusCode, 302); assert.equal(response.headers.Location, "/purple-pals.svg");});
test("missing requestProvider source map is a 404", async () => { const response = await handler({ path: "/requestProvider.js.map", headers: {}, queryStringParameters: {}, });
assert.equal(response.statusCode, 404);});