Skip to content

Commit

Permalink
Fix?
Browse files Browse the repository at this point in the history
  • Loading branch information
benjackwhite committed May 2, 2024
1 parent 46f3490 commit e9dbc0c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/__tests__/posthog-core.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ describe('posthog core', () => {
})

it('does not capture if rate limit is in place', () => {
jest.useFakeTimers()
jest.setSystemTime(Date.now())

console.error = jest.fn()
const { posthog, onCapture } = setup()

Expand Down

0 comments on commit e9dbc0c

Please sign in to comment.