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:
parent
1e927dccfc
commit
d5ee7731e6
|
@ -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
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in New Issue