Updated accessing a single prop's value

Instead of `.props('name')`, use `.prop('name')` to access a single prop's value for testing
This commit is contained in:
Mercedes 2020-02-12 13:06:28 -06:00 committed by GitHub
parent 48a96fd920
commit d55d4f9fc8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@ wrap.setState({ show: true })
#### Asserting #### Asserting
```js ```js
expect(wrap.props('name')).toEqual('Moe') expect(wrap.prop('name')).toEqual('Moe')
expect(wrap.state('show')).toEqual(true) expect(wrap.state('show')).toEqual(true)
``` ```