Skip to content

Commit

Permalink
fix TS error in a test
Browse files Browse the repository at this point in the history
  • Loading branch information
thorn0 committed Nov 9, 2020
1 parent cb0db4b commit 2a3abb5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/matchers/mock/toBeRequestedWith.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export function toBeRequestedWithFn(
headersMatcher(call.headers, requestedWith.requestHeaders) &&
headersMatcher(call.responseHeaders, requestedWith.responseHeaders) &&
bodyMatcher(call.postData, requestedWith.postData) &&
!Buffer.isBuffer(call.body) &&
bodyMatcher(call.body, requestedWith.response)
) {
return true
Expand Down

0 comments on commit 2a3abb5

Please sign in to comment.