Skip to content

Commit

Permalink
fix invariant violation in provider
Browse files Browse the repository at this point in the history
  • Loading branch information
ooHmartY committed Apr 5, 2019
1 parent 970779f commit f6aef24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/enzyme-adapter-react-16/src/detectFiberTags.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ module.exports = function detectFiberTags() {
? getFiber(React.createElement(Ctx.Consumer, null, () => null)).tag
: -1,
ContextProvider: supportsContext
? getFiber(React.createElement(Ctx.Provider, { value: null })).tag
? getFiber(React.createElement(Ctx.Provider, { value: null }, null)).tag
: -1,
ForwardRef: supportsForwardRef
? getFiber(React.createElement(FwdRef)).tag
Expand Down

0 comments on commit f6aef24

Please sign in to comment.