Skip to content

Commit

Permalink
[Tests] Fixes confusing test description on React 16.x
Browse files Browse the repository at this point in the history
According to docs, calling `instance()` on a wrapped stateless component should return null
  • Loading branch information
Marcelo T Prado authored and ljharb committed Jan 3, 2019
1 parent 435e0d1 commit ecbe883
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/api/ShallowWrapper/instance.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class Stateful extends React.Component {
```
#### React 16.x
```jsx
test('shallow wrapper instance should not be null', () => {
test('shallow wrapper instance should be null', () => {
const wrapper = shallow(<Stateless />);
const instance = wrapper.instance();

Expand Down

0 comments on commit ecbe883

Please sign in to comment.