Merge pull request #1301 from bourhaouta/patch-1

Update enzyme.md
This commit is contained in:
Rico Sta. Cruz 2019-12-24 22:02:25 +11:00 committed by GitHub
commit d6cfb7b9a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -88,7 +88,7 @@ expect(wrap.state('show')).toEqual(true)
``` ```
```js ```js
expect('name' in wrap.props()).toEqual(true) expect('name' in wrap.props()).toEqual('Moe')
expect('show' in wrap.state()).toEqual(true) expect('show' in wrap.state()).toEqual(true)
``` ```
@ -248,7 +248,7 @@ wrap.context() // get full context
```js ```js
wrap.state('key') // → any wrap.state('key') // → any
wrap.prop('key') // → any wrap.prop('key') // → any
wrap.context('key') // → any wrap.context('key') // → any
``` ```