Skip to content

Commit

Permalink
chore: update new test expect count for extra network call
Browse files Browse the repository at this point in the history
  • Loading branch information
dav1do committed Jul 18, 2024
1 parent 7a3eac2 commit 28ace50
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/core/src/__tests__/recon.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,9 @@ describe('ReconApi', () => {
const fakeInterest0 = TestUtils.randomStreamID()
const fakeInterest1 = TestUtils.randomStreamID()
await reconApi.init('testInitialCursor', [fakeInterest0, fakeInterest1])
expect(mockSendRequest).toHaveBeenCalledTimes(3)
expect(mockSendRequest.mock.calls[1][0]).toContain(fakeInterest0.toString())
expect(mockSendRequest.mock.calls[2][0]).toContain(fakeInterest1.toString())
expect(mockSendRequest).toHaveBeenCalledTimes(4)
expect(mockSendRequest.mock.calls[2][0]).toContain(fakeInterest0.toString())
expect(mockSendRequest.mock.calls[3][0]).toContain(fakeInterest1.toString())
reconApi.stop()
})
})
Expand Down

0 comments on commit 28ace50

Please sign in to comment.