import { describe, expect, it } from "vitest";

import { isPrivateRoomAuthRequired } from "../use-private-room-flow";

describe("isPrivateRoomAuthRequired", () => {
  it.each(["guest", "notLoggedIn"] as const)(
    "requires auth for %s users",
    (loginStatus) => {
      expect(isPrivateRoomAuthRequired(loginStatus)).toBe(true);
    },
  );

  it.each(["email", "facebook", "google"] as const)(
    "allows %s users to top up directly",
    (loginStatus) => {
      expect(isPrivateRoomAuthRequired(loginStatus)).toBe(false);
    },
  );
});
