@@ -48,7 +48,6 @@ describe('internal api', () => {
48
48
} ) ;
49
49
50
50
afterEach ( ( ) => {
51
- console . log ( 'afterEach' ) ;
52
51
clearState ( ) ;
53
52
removegreCAPTCHAScriptsOnPage ( ) ;
54
53
} ) ;
@@ -234,7 +233,6 @@ describe('internal api', () => {
234
233
} ) ;
235
234
236
235
it ( 'returns the valid token in memory without making network request' , async ( ) => {
237
- console . log ( 'start returns the valid' ) ;
238
236
const clock = useFakeTimers ( ) ;
239
237
activate ( app , FAKE_SITE_KEY ) ;
240
238
setState ( app , { ...getState ( app ) , token : fakeRecaptchaAppCheckToken } ) ;
@@ -246,11 +244,9 @@ describe('internal api', () => {
246
244
expect ( clientStub ) . to . not . have . been . called ;
247
245
248
246
clock . restore ( ) ;
249
- console . log ( 'end returns the valid' ) ;
250
247
} ) ;
251
248
252
249
it ( 'force to get new token when forceRefresh is true' , async ( ) => {
253
- console . log ( 'start force to get new token' ) ;
254
250
activate ( app , FAKE_SITE_KEY ) ;
255
251
setState ( app , { ...getState ( app ) , token : fakeRecaptchaAppCheckToken } ) ;
256
252
@@ -262,11 +258,9 @@ describe('internal api', () => {
262
258
expect ( await getToken ( app , true ) ) . to . deep . equal ( {
263
259
token : fakeRecaptchaAppCheckToken . token
264
260
} ) ;
265
- console . log ( 'end force to get new token' ) ;
266
261
} ) ;
267
262
268
263
it ( 'exchanges debug token if in debug mode' , async ( ) => {
269
- console . log ( 'start exchanges debug token' ) ;
270
264
const exchangeTokenStub : SinonStub = stub (
271
265
client ,
272
266
'exchangeToken'
@@ -282,7 +276,6 @@ describe('internal api', () => {
282
276
'my-debug-token'
283
277
) ;
284
278
expect ( token ) . to . deep . equal ( { token : fakeRecaptchaAppCheckToken . token } ) ;
285
- console . log ( 'end exchanges debug token' ) ;
286
279
} ) ;
287
280
} ) ;
288
281
@@ -312,9 +305,6 @@ describe('internal api', () => {
312
305
token : `fake-memory-app-check-token`
313
306
} ) ;
314
307
clock . restore ( ) ;
315
- console . log (
316
- 'done() in notifies the listener with the valid token in memory immediately'
317
- ) ;
318
308
done ( ) ;
319
309
} ;
320
310
@@ -344,9 +334,6 @@ describe('internal api', () => {
344
334
token : `fake-cached-app-check-token`
345
335
} ) ;
346
336
clock . restore ( ) ;
347
- console . log (
348
- 'done() in notifies the listener with the valid token in storage'
349
- ) ;
350
337
done ( ) ;
351
338
} ;
352
339
@@ -359,9 +346,6 @@ describe('internal api', () => {
359
346
expect ( token ) . to . deep . equal ( {
360
347
token : `my-debug-token`
361
348
} ) ;
362
- console . log (
363
- 'done() in notifies the listener with the debug token immediately'
364
- ) ;
365
349
done ( ) ;
366
350
} ;
367
351
0 commit comments