@@ -121,7 +121,7 @@ describe('SubscriptionDetailsButton', () => {
121
121
const props = {
122
122
for : 'user' as const ,
123
123
onSubscriptionCancel,
124
- planDetailsProps : {
124
+ subscriptionDetailsButton : {
125
125
appearance : { } as Theme ,
126
126
} ,
127
127
} ;
@@ -133,7 +133,7 @@ describe('SubscriptionDetailsButton', () => {
133
133
await waitFor ( ( ) => {
134
134
expect ( mockOpenSubscriptionDetails ) . toHaveBeenCalledWith (
135
135
expect . objectContaining ( {
136
- ...props . planDetailsProps ,
136
+ ...props . subscriptionDetailsButton ,
137
137
for : props . for ,
138
138
onSubscriptionCancel : props . onSubscriptionCancel ,
139
139
} ) ,
@@ -183,7 +183,7 @@ describe('SubscriptionDetailsButton', () => {
183
183
184
184
it ( 'handles portal configuration correctly' , async ( ) => {
185
185
const portalProps = {
186
- planDetailsProps : {
186
+ subscriptionDetailsButton : {
187
187
portalId : 'custom-portal' ,
188
188
portalRoot : document . createElement ( 'div' ) ,
189
189
} ,
@@ -196,7 +196,7 @@ describe('SubscriptionDetailsButton', () => {
196
196
await waitFor ( ( ) => {
197
197
expect ( mockOpenSubscriptionDetails ) . toHaveBeenCalledWith (
198
198
expect . objectContaining ( {
199
- ...portalProps . planDetailsProps ,
199
+ ...portalProps . subscriptionDetailsButton ,
200
200
} ) ,
201
201
) ;
202
202
} ) ;
0 commit comments