Skip to content

Commit

Permalink
Update Readme for the usage of auto registered chai styles
Browse files Browse the repository at this point in the history
  • Loading branch information
deeperx committed Nov 17, 2016
1 parent 81283fe commit 01f76b8
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions README.md
Expand Up @@ -116,6 +116,28 @@ var expect = chai.expect;
var should = chai.should();
```

## Usage for ES6+

```js
// Using Assert style
import assert from 'chai/assert'
// Using Expect style
import expect from 'chai/expect'
// Using Should style
import should from 'chai/should'
```

## Usage with Mocha

```bash
# Using Assert style
mocha spec.js -r chai/assert # OR:
# Using Expect style
mocha spec.js -r chai/expect # OR:
# Using Should style
mocha spec.js -r chai/should
```

[Read more about these styles in our docs](http://chaijs.com/guide/styles/).

## Plugins
Expand Down

0 comments on commit 01f76b8

Please sign in to comment.