import { describe, expect, it } from "vitest"; import { istTestsystem } from "@/lib/testsystem"; describe("istTestsystem", () => { it("erkennt die eingeschaltete Einstellung", () => { for (const w of ["1", "true", "TRUE", " ja "]) expect(istTestsystem(w), w).toBe(true); }); it("bleibt ohne Eintrag oder mit anderem Wert aus", () => { for (const w of [undefined, "", "0", "false", "nein", "Produktion"]) expect(istTestsystem(w), String(w)).toBe(false); }); });