From 91e58ed96dc9993b6389af854a32a87f849fbc85 Mon Sep 17 00:00:00 2001 From: Matti Schneider Date: Wed, 13 Mar 2024 23:49:01 +0530 Subject: [PATCH] Correct Mocha import instructions (#1611) * Correct Mocha usage instructions * Use long options Improve understandability of instructions --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 065a4275..24249718 100644 --- a/README.md +++ b/README.md @@ -98,9 +98,9 @@ import { expect, use } from 'chai'; // Creates local variables `expect` and `us ### Usage with Mocha ```bash -mocha spec.js -r chai/register-assert # Using Assert style -mocha spec.js -r chai/register-expect # Using Expect style -mocha spec.js -r chai/register-should # Using Should style +mocha spec.js --require chai/register-assert.js # Using Assert style +mocha spec.js --require chai/register-expect.js # Using Expect style +mocha spec.js --require chai/register-should.js # Using Should style ``` [Read more about these styles in our docs](http://chaijs.com/guide/styles/).