import { describe, it, expect } from "vitest"; import { MEMBER_RANK_LABEL_CODES, MEMBER_STATUS_FILTER_OPTIONS, MEMBER_STATUS_LABEL_CODES, MEMBER_STATUS_TONE, } from "./memberLabels"; describe("MEMBER_RANK_LABEL_CODES", () => { it("lists only the babyboo ranks (remove-legacy-member-ranks)", () => { expect(Object.keys(MEMBER_RANK_LABEL_CODES)).toEqual(["NA", "M", "OTTER", "SQUIRREL", "GIRAFFE"]); }); }); describe("MEMBER_STATUS_TONE", () => { it("covers every status code with a tone", () => { expect(Object.keys(MEMBER_STATUS_TONE).sort()).toEqual(Object.keys(MEMBER_STATUS_LABEL_CODES).sort()); expect(MEMBER_STATUS_TONE.Y).toBe("positive"); expect(MEMBER_STATUS_TONE.P).toBe("warning"); expect(MEMBER_STATUS_TONE.S).toBe("negative"); }); }); // BABYBOO-50 PM follow-up: the Members Status filter offers only Active and Inactive. describe("MEMBER_STATUS_FILTER_OPTIONS", () => { it("offers only Active and Inactive, each with its label code", () => { expect(MEMBER_STATUS_FILTER_OPTIONS).toEqual([ { value: "Y", label: "MemberStatusActive" }, { value: "N", label: "MemberStatusInactive" }, ]); }); });