import { describe, it, expect } from "vitest"; import { getProportionBarProgressForCreateFlowStep } from "../../app/create/utils/createFlowProportionProgress"; describe("getProportionBarProgressForCreateFlowStep", () => { it("uses 1-2 on community-structure (third Create Community step)", () => { expect(getProportionBarProgressForCreateFlowStep("community-structure")).toBe( "1-2", ); }); it("advances proportion after structure for context and size", () => { expect(getProportionBarProgressForCreateFlowStep("community-context")).toBe( "1-3", ); expect(getProportionBarProgressForCreateFlowStep("community-size")).toBe( "1-4", ); }); it("uses 2-0 on community-save and review (end of Create Community segment)", () => { expect(getProportionBarProgressForCreateFlowStep("community-save")).toBe( "2-0", ); expect(getProportionBarProgressForCreateFlowStep("review")).toBe("2-0"); }); });