Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
silesky committed Sep 27, 2023
1 parent 77f4cec commit 2660709
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/browser/src/core/buffer/__tests__/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -442,10 +442,9 @@ describe(flushAnalyticsCallsInNewTask, () => {
)

const buffer = new PreInitMethodCallBuffer(synchronousMethod, asyncMethod)
buffer.push(synchronousMethod, asyncMethod)
flushAnalyticsCallsInNewTask(new Analytics({ writeKey: 'abc' }), buffer)
await sleep(0)
expect(synchronousMethod.reject).toBeCalled()
expect(asyncMethod.resolve).toBeCalled()
expect(synchronousMethod.reject).toBeCalledTimes(1)
expect(asyncMethod.resolve).toBeCalledTimes(1)
})
})

0 comments on commit 2660709

Please sign in to comment.