Open-source status page, incident response and uptime monitoring
TypeScript alertingincident-managementmcpmcp-servermonitoringmonitoring-as-codeobservabilityon-callopen-sourcesrestatus-pagestatuspagesynthetic-monitoringterraformtinybirdtursouptimeuptime-checkeruptime-monitor
import { describe, expect, test } from "vitest";
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);
});
});