Skip to content

Commit

Permalink
Sitong/ch31658/fix axios mock adapter error ctimmerm#283 (#2)
Browse files Browse the repository at this point in the history
* fix conflicts

* update package-lock.json
  • Loading branch information
Lohins authored Sep 29, 2020
1 parent 08ad705 commit 915b17c
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
24 changes: 24 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ function isObjectMatching(actual, expected) {
if (typeof expected.asymmetricMatch === "function") {
return expected.asymmetricMatch(actual);
}
return isEqual(parameters, required) || parameters === required;
return isEqual(actual, expected) || actual === expected;
}

function isBodyMatching(body, requiredBody) {
Expand Down

0 comments on commit 915b17c

Please sign in to comment.