Skip to content

Commit

Permalink
Fixed object matcher (#3799)
Browse files Browse the repository at this point in the history
  • Loading branch information
jzeiders authored and cpojer committed Jun 12, 2017
1 parent 03bb9b3 commit 7ac4899
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/jest-matchers/src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ const getObjectSubset = (object: Object, subset: Object) => {
) {
const trimmed = {};
Object.keys(subset)
.filter(key => object.hasOwnProperty(key))
.filter(key => hasOwnProperty(object, key))
.forEach(
key => (trimmed[key] = getObjectSubset(object[key], subset[key])),
);
Expand Down

0 comments on commit 7ac4899

Please sign in to comment.