Skip to content

Commit 25e58e9

Browse files
committed
replace drawer object with the name of the component
1 parent 748f635 commit 25e58e9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/react/src/components/__tests__/SubscriptionDetailsButton.test.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ describe('SubscriptionDetailsButton', () => {
121121
const props = {
122122
for: 'user' as const,
123123
onSubscriptionCancel,
124-
planDetailsProps: {
124+
subscriptionDetailsButton: {
125125
appearance: {} as Theme,
126126
},
127127
};
@@ -133,7 +133,7 @@ describe('SubscriptionDetailsButton', () => {
133133
await waitFor(() => {
134134
expect(mockOpenSubscriptionDetails).toHaveBeenCalledWith(
135135
expect.objectContaining({
136-
...props.planDetailsProps,
136+
...props.subscriptionDetailsButton,
137137
for: props.for,
138138
onSubscriptionCancel: props.onSubscriptionCancel,
139139
}),
@@ -183,7 +183,7 @@ describe('SubscriptionDetailsButton', () => {
183183

184184
it('handles portal configuration correctly', async () => {
185185
const portalProps = {
186-
planDetailsProps: {
186+
subscriptionDetailsButton: {
187187
portalId: 'custom-portal',
188188
portalRoot: document.createElement('div'),
189189
},
@@ -196,7 +196,7 @@ describe('SubscriptionDetailsButton', () => {
196196
await waitFor(() => {
197197
expect(mockOpenSubscriptionDetails).toHaveBeenCalledWith(
198198
expect.objectContaining({
199-
...portalProps.planDetailsProps,
199+
...portalProps.subscriptionDetailsButton,
200200
}),
201201
);
202202
});

0 commit comments

Comments
 (0)