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

import { isPrivateZoneAuthRequired } from "../use-private-zone-flow";

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

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