Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/openstatusHQ/openstatus. ๐ซ Status page with uptime monitoring & API monitoring as code ๐ซ openstatus.dev
bun drizzle-orm monitoring monitoring-as-code nextjs observability on-call open-source shadcn-ui status-page statuspage synthetic-monitoring tinybird turso uptime uptime-checker uptime-monitor
Something went wrong. Try again.
TypeScript
12345678910111213141516171819202122import { expect } from "@std/expect";import { describe, test } from "@std/testing/bdd";
import { getJsonLDOrganization } from "./structured-data";
describe("getJsonLDOrganization", () => { test("publishes a postal address alongside the contact points", () => { const org = getJsonLDOrganization(); // schema-dts types every node as `object | string`; narrow once. if (typeof org === "string") throw new Error("expected an Organization");
expect(org.address).toEqual({ "@type": "PostalAddress", streetAddress: "122 Rue Amelot", postalCode: "75011", addressLocality: "Paris", addressCountry: "FR", }); expect(Array.isArray(org.contactPoint)).toBe(true); });});