Skip to content

Commit 91e58ed

Browse files
authored
Correct Mocha import instructions (#1611)
* Correct Mocha usage instructions * Use long options Improve understandability of instructions
1 parent 61159d1 commit 91e58ed

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,9 @@ import { expect, use } from 'chai'; // Creates local variables `expect` and `us
9898
### Usage with Mocha
9999

100100
```bash
101-
mocha spec.js -r chai/register-assert # Using Assert style
102-
mocha spec.js -r chai/register-expect # Using Expect style
103-
mocha spec.js -r chai/register-should # Using Should style
101+
mocha spec.js --require chai/register-assert.js # Using Assert style
102+
mocha spec.js --require chai/register-expect.js # Using Expect style
103+
mocha spec.js --require chai/register-should.js # Using Should style
104104
```
105105

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

0 commit comments

Comments
 (0)