Skip to content

Commit

Permalink
fix(clerk-js): Fix tokenCache.test.ts (#4616)
Browse files Browse the repository at this point in the history
nikosdouvlis authored Nov 20, 2024
1 parent 6b09617 commit 6fc5e8e
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .changeset/thin-turkeys-turn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
---
4 changes: 2 additions & 2 deletions packages/clerk-js/src/core/__tests__/tokenCache.test.ts
Original file line number Diff line number Diff line change
@@ -124,8 +124,8 @@ describe('MemoryTokenCache', () => {

expect(cache.get(key)).toMatchObject(key);

// 45s since token created
jest.advanceTimersByTime(45 * 1000);
// 44s since token created
jest.advanceTimersByTime(44 * 1000);
expect(cache.get(key)).toMatchObject(key);

// 46s since token created

0 comments on commit 6fc5e8e

Please sign in to comment.