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
Something went wrong. Try again.
12345678910111213141516171819import { Cron, Result } from "effect";import { describe, expect, test } from "vitest";
import { SCHEDULED_TASKS } from "./scheduler";
describe("SCHEDULED_TASKS", () => { test("every expression parses", () => { for (const task of SCHEDULED_TASKS) { const parsed = Cron.parse(task.expression); expect(Result.isSuccess(parsed)).toBe(true); } });
test("task names are unique", () => { const names = SCHEDULED_TASKS.map((task) => task.name); expect(new Set(names).size).toBe(names.length); });});