Skip to content

Commit

Permalink
test(response): change xhr response listener call count assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
kettanaito committed Sep 21, 2023
1 parent 95a5de7 commit 898e4a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/features/events/response.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ it('XMLHttpRequest: emits the "response" event upon the original response', asyn
* passthrough to the ClientRequest, it will perform an "OPTIONS" request first,
* thus two request/response events emitted.
*/
expect(responseListener).toHaveBeenCalledTimes(1)
expect(responseListener).toHaveBeenCalledTimes(2)

// Lookup the correct response listener call.
const [{ response, request, isMockedResponse }] =
Expand Down

0 comments on commit 898e4a8

Please sign in to comment.