@@ -46,25 +46,25 @@ const run = (args: {
4646 subscription ?: BillingSubscriptionItemResource ;
4747 plan ?: BillingPlanResource ;
4848 planPeriod ?: BillingSubscriptionPlanPeriod ;
49- forOrganizations ?: boolean ;
49+ for ?: 'user' | 'organization' ;
5050 hasActiveOrganization ?: boolean ;
5151} ) =>
5252 getPricingFooterState ( {
5353 subscription : args . subscription ,
5454 plan : args . plan ?? basePlan ,
5555 planPeriod : args . planPeriod ?? 'month' ,
56- forOrganizations : args . forOrganizations ,
56+ for : args . for ,
5757 hasActiveOrganization : args . hasActiveOrganization ?? false ,
5858 } ) ;
5959
6060describe ( 'usePricingFooterState' , ( ) => {
6161 it ( 'hides footer when org plans and no active org' , ( ) => {
62- const res = run ( { subscription : undefined , forOrganizations : true , hasActiveOrganization : false } ) ;
62+ const res = run ( { subscription : undefined , for : 'organization' , hasActiveOrganization : false } ) ;
6363 expect ( res ) . toEqual ( { shouldShowFooter : false , shouldShowFooterNotice : false } ) ;
6464 } ) ;
6565
6666 it ( 'shows footer when no subscription and user plans' , ( ) => {
67- const res = run ( { subscription : undefined , forOrganizations : false } ) ;
67+ const res = run ( { subscription : undefined , for : 'user' } ) ;
6868 expect ( res ) . toEqual ( { shouldShowFooter : true , shouldShowFooterNotice : false } ) ;
6969 } ) ;
7070
0 commit comments