Skip to content

Commit

Permalink
Check for object presence in AsymmetricMatcher
Browse files Browse the repository at this point in the history
  • Loading branch information
thymikee committed Jan 2, 2017
1 parent 468f85f commit 9926393
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/pretty-format/src/plugins/AsymmetricMatcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ module.exports = {
opts: Object,
colors: Object
) => val.toAsymmetricMatcher(print),
test: (object: any) => object.$$typeof === asymmetricMatcher,
test: (object: any) => object && object.$$typeof === asymmetricMatcher,
};

0 comments on commit 9926393

Please sign in to comment.