import getPageTitle from "../utils/getPageTitle.js";

describe("getPageTitle additional tests", () => {
  it("should return title for dashboard path", () => {
    const result = getPageTitle("/dashboard");
    expect(result).toBe("Dashboard");
  });

  it("should return 'User Profile Summary' for user-profile path with id", () => {
    const result = getPageTitle("/user-profile/123");
    expect(result).toBe("User Profile Summary");
  });

  it("should return 'User Profile Summary' for different user-profile ids", () => {
    expect(getPageTitle("/user-profile/1")).toBe("User Profile Summary");
    expect(getPageTitle("/user-profile/999")).toBe("User Profile Summary");
    expect(getPageTitle("/user-profile/12345")).toBe("User Profile Summary");
  });

  it("should return undefined for unknown path", () => {
    const result = getPageTitle("/unknown-path");
    expect(result).toBeUndefined();
  });

  it("should handle empty path", () => {
    const result = getPageTitle("");
    expect(result).toBeUndefined();
  });
});
