@@ -163,7 +163,7 @@ describe('internal api', () => {
163163 const error = new Error ( 'oops, something went wrong' ) ;
164164 stub ( client , 'exchangeToken' ) . returns ( Promise . reject ( error ) ) ;
165165
166- const token = await getToken ( appCheck as AppCheckService ) ;
166+ const token = await getToken ( appCheck as AppCheckService , false , true ) ;
167167
168168 expect ( reCAPTCHASpy ) . to . be . called ;
169169 expect ( token ) . to . deep . equal ( {
@@ -186,7 +186,7 @@ describe('internal api', () => {
186186 const error = new Error ( 'oops, something went wrong' ) ;
187187 stub ( client , 'exchangeToken' ) . returns ( Promise . reject ( error ) ) ;
188188
189- const token = await getToken ( appCheck as AppCheckService ) ;
189+ const token = await getToken ( appCheck as AppCheckService , false , true ) ;
190190
191191 expect ( token ) . to . deep . equal ( {
192192 token : formatDummyToken ( defaultTokenErrorData ) ,
@@ -208,7 +208,7 @@ describe('internal api', () => {
208208 const reCAPTCHASpy = stubGetRecaptchaToken ( '' , false ) ;
209209 const exchangeTokenStub = stub ( client , 'exchangeToken' ) ;
210210
211- const token = await getToken ( appCheck as AppCheckService ) ;
211+ const token = await getToken ( appCheck as AppCheckService , false , true ) ;
212212
213213 expect ( reCAPTCHASpy ) . to . be . called ;
214214 expect ( exchangeTokenStub ) . to . not . be . called ;
@@ -290,7 +290,6 @@ describe('internal api', () => {
290290 } ) ;
291291
292292 it ( 'calls 3P error handler if there is an error getting a token' , async ( ) => {
293- stub ( console , 'error' ) ;
294293 const appCheck = initializeAppCheck ( app , {
295294 provider : new ReCaptchaV3Provider ( FAKE_SITE_KEY ) ,
296295 isTokenAutoRefreshEnabled : true
@@ -314,7 +313,6 @@ describe('internal api', () => {
314313 } ) ;
315314
316315 it ( 'ignores listeners that throw' , async ( ) => {
317- stub ( console , 'error' ) ;
318316 const appCheck = initializeAppCheck ( app , {
319317 provider : new ReCaptchaV3Provider ( FAKE_SITE_KEY ) ,
320318 isTokenAutoRefreshEnabled : true
0 commit comments