chai: formatting
This commit is contained in:
parent
c442907f1a
commit
466f1c07fb
11
chai.md
11
chai.md
|
@ -133,12 +133,15 @@ These don't do anything and can be chained.
|
|||
expect(object).not.equal('x')
|
||||
```
|
||||
|
||||
### Chai-jQuery
|
||||
## Chai with jQuery
|
||||
|
||||
### Using chai-jquery
|
||||
|
||||
```js
|
||||
global.jQuery = ···
|
||||
chai.use(require('chai-jquery'))
|
||||
```
|
||||
{: .-setup}
|
||||
|
||||
```js
|
||||
expect($body)
|
||||
|
@ -160,6 +163,12 @@ expect($body)
|
|||
.have.value('2013')
|
||||
```
|
||||
|
||||
### Continued
|
||||
|
||||
```js
|
||||
expect($body)
|
||||
```
|
||||
|
||||
```js
|
||||
.be.visible
|
||||
.be.hidden
|
||||
|
|
Loading…
Reference in New Issue