Skip to content

Commit 2dcdae6

Browse files
committed
patch test
1 parent a0a88ad commit 2dcdae6

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

packages/shared/src/react/hooks/__tests__/useCheckout.type.spec.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import type {
22
__experimental_CheckoutCacheState,
33
__experimental_CheckoutInstance,
4+
BillingCheckoutResource,
5+
BillingSubscriptionPlanPeriod,
46
ClerkAPIResponseError,
5-
CommerceCheckoutResource,
6-
CommerceSubscriptionPlanPeriod,
77
ConfirmCheckoutParams,
88
SetActiveNavigate,
99
} from '@clerk/types';
@@ -24,7 +24,7 @@ describe('useCheckout type tests', () => {
2424
type ValidOptions = {
2525
for: 'organization';
2626
planId: string;
27-
planPeriod: CommerceSubscriptionPlanPeriod;
27+
planPeriod: BillingSubscriptionPlanPeriod;
2828
};
2929
expectTypeOf<ValidOptions>().toMatchTypeOf<UseCheckoutParameters>();
3030
});
@@ -33,7 +33,7 @@ describe('useCheckout type tests', () => {
3333
type InvalidOptions = {
3434
for: 'invalid';
3535
planId: string;
36-
planPeriod: CommerceSubscriptionPlanPeriod;
36+
planPeriod: BillingSubscriptionPlanPeriod;
3737
};
3838
expectTypeOf<UseCheckoutParameters>().not.toEqualTypeOf<InvalidOptions>();
3939
});
@@ -51,7 +51,7 @@ describe('useCheckout type tests', () => {
5151
type InvalidOptions = {
5252
for: 'organization';
5353
planId: string;
54-
planPeriod: CommerceSubscriptionPlanPeriod;
54+
planPeriod: BillingSubscriptionPlanPeriod;
5555
invalidProp: boolean;
5656
};
5757
expectTypeOf<UseCheckoutParameters>().not.toEqualTypeOf<InvalidOptions>();
@@ -78,7 +78,7 @@ describe('useCheckout type tests', () => {
7878

7979
type CheckoutResult =
8080
| {
81-
data: CommerceCheckoutResource;
81+
data: BillingCheckoutResource;
8282
error: null;
8383
}
8484
| {
@@ -101,7 +101,7 @@ describe('useCheckout type tests', () => {
101101

102102
type CheckoutResult =
103103
| {
104-
data: CommerceCheckoutResource;
104+
data: BillingCheckoutResource;
105105
error: null;
106106
}
107107
| {

0 commit comments

Comments
 (0)