// frontend/tests/inbox/inbox-presentation.test.ts import { describe, expect, it } from "vitest"; import { SPHERE, TYPE_ICON, TYPE_LABEL, nextType } from "@/lib/inbox/presentation"; describe("inbox-presentation", () => { it("nextType 순환 task→event→idea→task", () => { expect(nextType("task")).toBe("event"); expect(nextType("event")).toBe("idea"); expect(nextType("idea")).toBe("task"); }); it("라벨/아이콘/sphere 맵", () => { expect(TYPE_LABEL.task).toBe("작업"); expect(TYPE_LABEL.event).toBe("일정"); expect(TYPE_LABEL.idea).toBe("아이디어"); expect(TYPE_ICON.idea).toBe("brain"); expect(TYPE_ICON.task).toBe("check"); expect(SPHERE.life.label).toBe("개인"); expect(SPHERE.work.label).toBe("업무"); }); });