Skip to content

Commit 51340a1

Browse files
committed
fix test
1 parent 487158c commit 51340a1

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

packages/clerk-js/src/ui/components/SignIn/__tests__/SignInFactorOneCodeForm.spec.tsx

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,11 @@ describe('SignInFactorOneCodeForm', () => {
5656
name: 'signIn.prepareFirstFactor',
5757
factorKey: 'phone_code_idn_123',
5858
},
59-
{
59+
expect.objectContaining({
6060
staleTime: 100,
61-
},
61+
onSuccess: expect.any(Function),
62+
onError: expect.any(Function),
63+
}),
6264
);
6365
});
6466

@@ -91,9 +93,11 @@ describe('SignInFactorOneCodeForm', () => {
9193
name: 'signIn.prepareFirstFactor',
9294
factorKey: 'phone_code_idn_123_whatsapp',
9395
},
94-
{
96+
expect.objectContaining({
9597
staleTime: 100,
96-
},
98+
onSuccess: expect.any(Function),
99+
onError: expect.any(Function),
100+
}),
97101
);
98102
});
99103

0 commit comments

Comments
 (0)