Skip to content

Commit 8e58f85

Browse files
committed
Revert test debugging changes
1 parent ab2e8c5 commit 8e58f85

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

packages/app-check/src/internal-api.test.ts

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ describe('internal api', () => {
4848
});
4949

5050
afterEach(() => {
51-
console.log('afterEach');
5251
clearState();
5352
removegreCAPTCHAScriptsOnPage();
5453
});
@@ -234,7 +233,6 @@ describe('internal api', () => {
234233
});
235234

236235
it('returns the valid token in memory without making network request', async () => {
237-
console.log('start returns the valid');
238236
const clock = useFakeTimers();
239237
activate(app, FAKE_SITE_KEY);
240238
setState(app, { ...getState(app), token: fakeRecaptchaAppCheckToken });
@@ -246,11 +244,9 @@ describe('internal api', () => {
246244
expect(clientStub).to.not.have.been.called;
247245

248246
clock.restore();
249-
console.log('end returns the valid');
250247
});
251248

252249
it('force to get new token when forceRefresh is true', async () => {
253-
console.log('start force to get new token');
254250
activate(app, FAKE_SITE_KEY);
255251
setState(app, { ...getState(app), token: fakeRecaptchaAppCheckToken });
256252

@@ -262,11 +258,9 @@ describe('internal api', () => {
262258
expect(await getToken(app, true)).to.deep.equal({
263259
token: fakeRecaptchaAppCheckToken.token
264260
});
265-
console.log('end force to get new token');
266261
});
267262

268263
it('exchanges debug token if in debug mode', async () => {
269-
console.log('start exchanges debug token');
270264
const exchangeTokenStub: SinonStub = stub(
271265
client,
272266
'exchangeToken'
@@ -282,7 +276,6 @@ describe('internal api', () => {
282276
'my-debug-token'
283277
);
284278
expect(token).to.deep.equal({ token: fakeRecaptchaAppCheckToken.token });
285-
console.log('end exchanges debug token');
286279
});
287280
});
288281

@@ -312,9 +305,6 @@ describe('internal api', () => {
312305
token: `fake-memory-app-check-token`
313306
});
314307
clock.restore();
315-
console.log(
316-
'done() in notifies the listener with the valid token in memory immediately'
317-
);
318308
done();
319309
};
320310

@@ -344,9 +334,6 @@ describe('internal api', () => {
344334
token: `fake-cached-app-check-token`
345335
});
346336
clock.restore();
347-
console.log(
348-
'done() in notifies the listener with the valid token in storage'
349-
);
350337
done();
351338
};
352339

@@ -359,9 +346,6 @@ describe('internal api', () => {
359346
expect(token).to.deep.equal({
360347
token: `my-debug-token`
361348
});
362-
console.log(
363-
'done() in notifies the listener with the debug token immediately'
364-
);
365349
done();
366350
};
367351

0 commit comments

Comments
 (0)