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.
595 B ยท 20 lines
TypeScript
123456789101112131415161718192021import { expect } from "@std/expect";import { describe, it } from "@std/testing/bdd";
import { type PageUpdateStatus, statusLabel } from "./status";
describe("statusLabel", () => { const labels: Record<PageUpdateStatus, string> = { investigating: "Investigating", identified: "Identified", monitoring: "Monitoring", resolved: "Resolved", maintenance: "Planned Maintenance", };
for (const [status, label] of Object.entries(labels)) { it(`labels ${status} as "${label}"`, () => { expect(statusLabel(status as PageUpdateStatus)).toBe(label); }); }});