Skip to content

Commit a4acd28

Browse files
author
Sebastian Silbermann
committed
f
1 parent 4b7d443 commit a4acd28

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

packages/react-debug-tools/src/__tests__/ReactHooksInspectionIntegration-test.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -772,8 +772,11 @@ describe('ReactHooksInspectionIntegration', () => {
772772

773773
it('should inspect the value of the current provider in useContext', () => {
774774
const MyContext = React.createContext('default');
775+
const ThemeContext = React.createContext('default');
776+
ThemeContext.displayName = 'Theme';
775777
function Foo(props) {
776778
const value = React.useContext(MyContext);
779+
React.useContext(ThemeContext);
777780
return <div>{value}</div>;
778781
}
779782
const renderer = ReactTestRenderer.create(

0 commit comments

Comments
 (0)