Skip to content

Commit

Permalink
Update null check
Browse files Browse the repository at this point in the history
  • Loading branch information
WillBrock committed May 27, 2018
1 parent 6eab8cb commit 0b90e2c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/expect/src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,7 @@ export const subsetEquality = (object: Object, subset: Object) => {

return Object.keys(subset).every(
key =>
object !== null &&
object !== undefined &&
object != null &&
hasOwnProperty(object, key) &&
equals(object[key], subset[key], [iterableEquality, subsetEquality]),
);
Expand Down

0 comments on commit 0b90e2c

Please sign in to comment.