import { renderToStaticMarkup } from "react-dom/server";
import { describe, expect, it, vi } from "vitest";

vi.mock("next/navigation", () => ({
  useRouter: () => ({ replace: vi.fn() }),
}));

import SubscriptionReturnPage from "../page";

describe("SubscriptionReturnPage", () => {
  it("renders outside CharacterProvider", () => {
    expect(() => renderToStaticMarkup(<SubscriptionReturnPage />)).not.toThrow();
  });
});
