import { describe, expect, it } from "vitest"; import { adminMutationNotice } from "@/lib/admin/notice"; describe("adminMutationNotice", () => { it("maps a successful redirect to a safe notice", () => { expect(adminMutationNotice({ saved: "1" })).toEqual({ tone: "ok", label: "Saved", message: "Changes were saved successfully.", }); }); it("maps an error code without reflecting arbitrary query text", () => { expect(adminMutationNotice({ error: "