Skip to content

Commit ab2e8c5

Browse files
committed
Figure out sketchy test 2
1 parent dab0445 commit ab2e8c5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

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

236236
it('returns the valid token in memory without making network request', async () => {
237+
console.log('start returns the valid');
237238
const clock = useFakeTimers();
238239
activate(app, FAKE_SITE_KEY);
239240
setState(app, { ...getState(app), token: fakeRecaptchaAppCheckToken });
@@ -245,9 +246,11 @@ describe('internal api', () => {
245246
expect(clientStub).to.not.have.been.called;
246247

247248
clock.restore();
249+
console.log('end returns the valid');
248250
});
249251

250252
it('force to get new token when forceRefresh is true', async () => {
253+
console.log('start force to get new token');
251254
activate(app, FAKE_SITE_KEY);
252255
setState(app, { ...getState(app), token: fakeRecaptchaAppCheckToken });
253256

@@ -259,9 +262,11 @@ describe('internal api', () => {
259262
expect(await getToken(app, true)).to.deep.equal({
260263
token: fakeRecaptchaAppCheckToken.token
261264
});
265+
console.log('end force to get new token');
262266
});
263267

264268
it('exchanges debug token if in debug mode', async () => {
269+
console.log('start exchanges debug token');
265270
const exchangeTokenStub: SinonStub = stub(
266271
client,
267272
'exchangeToken'
@@ -277,6 +282,7 @@ describe('internal api', () => {
277282
'my-debug-token'
278283
);
279284
expect(token).to.deep.equal({ token: fakeRecaptchaAppCheckToken.token });
285+
console.log('end exchanges debug token');
280286
});
281287
});
282288

0 commit comments

Comments
 (0)