Update obs. Enzyme methods 'getNode' & 'getNodes'

`getNode` and `getNodes` methods are depreciated and no longer in use. They are renamed to `getElement` and `getElements` instead. 

See Enzyme docs here: 
- https://airbnb.io/enzyme/docs/api/ShallowWrapper/getElement.html
- https://airbnb.io/enzyme/docs/api/ShallowWrapper/getElements.html
This commit is contained in:
Enes Kirimi 2019-10-05 11:50:03 +02:00 committed by GitHub
parent 1e927dccfc
commit d5ee7731e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -219,8 +219,8 @@ wrap.last() // → ReactWrapper
```js
wrap.get(0) // → ReactElement
wrap.getNode() // → ReactElement
wrap.getNodes() // → Array<ReactElement>
wrap.getElement() // → ReactElement
wrap.getElements() // → Array<ReactElement>
wrap.getDOMNode() // → DOMComponent
```