fix: resolve pre-existing type errors in test files blocking staging build
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
9a56777b8b
commit
bb9550dd39
2 changed files with 3 additions and 3 deletions
|
|
@ -95,7 +95,7 @@ describe("SubscriptionCard", () => {
|
|||
|
||||
it("shows Founder badge and unlimited info for annual plan", () => {
|
||||
const founderOrg = { ...baseOrg, active_subscription_plan: "annual" as const };
|
||||
const founderUser = { ...baseUser, plan: "annual" as const };
|
||||
const founderUser = { ...baseUser, plan: "standard" as const };
|
||||
renderCard(founderUser, founderOrg);
|
||||
expect(screen.getByText("Founder")).toBeInTheDocument();
|
||||
expect(screen.getByText(/Plan Founder \(annuel\)/)).toBeInTheDocument();
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@ function renderWithUser(user: User | null, orgData: ReturnType<typeof useOrganiz
|
|||
data: orgData,
|
||||
isLoading: false,
|
||||
error: null,
|
||||
} as ReturnType<typeof useOrganization>);
|
||||
} as unknown as ReturnType<typeof useOrganization>);
|
||||
|
||||
return render(
|
||||
<QueryClientProvider client={queryClient}>
|
||||
|
|
@ -164,7 +164,7 @@ describe("useMaybeUpgradeBlock", () => {
|
|||
data: compliantOrgData,
|
||||
isLoading: false,
|
||||
error: null,
|
||||
} as ReturnType<typeof useOrganization>);
|
||||
} as unknown as ReturnType<typeof useOrganization>);
|
||||
|
||||
render(
|
||||
<QueryClientProvider client={queryClient}>
|
||||
|
|
|
|||
Loading…
Reference in a new issue