File tree Expand file tree Collapse file tree
packages/clerk-js/src/core/resources/__tests__ Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,12 +19,14 @@ import { _futureAuthenticateWithPopup } from '../../../utils/authenticateWithPop
1919
2020// Mock the CaptchaChallenge module
2121vi . mock ( '../../../utils/captcha/CaptchaChallenge' , ( ) => ( {
22- CaptchaChallenge : vi . fn ( ) . mockImplementation ( ( ) => ( {
23- managedOrInvisible : vi . fn ( ) . mockResolvedValue ( {
24- captchaToken : 'mock_captcha_token' ,
25- captchaWidgetType : 'invisible' ,
26- } ) ,
27- } ) ) ,
22+ CaptchaChallenge : vi . fn ( ) . mockImplementation ( function ( ) {
23+ return {
24+ managedOrInvisible : vi . fn ( ) . mockResolvedValue ( {
25+ captchaToken : 'mock_captcha_token' ,
26+ captchaWidgetType : 'invisible' ,
27+ } ) ,
28+ } ;
29+ } ) ,
2830} ) ) ;
2931
3032describe ( 'SignIn' , ( ) => {
Original file line number Diff line number Diff line change @@ -20,12 +20,14 @@ import { CaptchaChallenge } from '../../../utils/captcha/CaptchaChallenge';
2020
2121// Mock the CaptchaChallenge module
2222vi . mock ( '../../../utils/captcha/CaptchaChallenge' , ( ) => ( {
23- CaptchaChallenge : vi . fn ( ) . mockImplementation ( ( ) => ( {
24- managedOrInvisible : vi . fn ( ) . mockResolvedValue ( {
25- captchaToken : 'mock_token' ,
26- captchaWidgetType : 'invisible' ,
27- } ) ,
28- } ) ) ,
23+ CaptchaChallenge : vi . fn ( ) . mockImplementation ( function ( ) {
24+ return {
25+ managedOrInvisible : vi . fn ( ) . mockResolvedValue ( {
26+ captchaToken : 'mock_token' ,
27+ captchaWidgetType : 'invisible' ,
28+ } ) ,
29+ } ;
30+ } ) ,
2931} ) ) ;
3032
3133describe ( 'SignUp' , ( ) => {
You can’t perform that action at this time.
0 commit comments