From 7720f82b00a8c67cf205b731a5482f0387d6a9e0 Mon Sep 17 00:00:00 2001 From: Matti Schneider Date: Wed, 6 Mar 2024 15:41:43 +0530 Subject: [PATCH 1/2] Correct Mocha usage instructions --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 065a4275..50792012 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 -r chai/register-assert.js # Using Assert style +mocha spec.js -r chai/register-expect.js # Using Expect style +mocha spec.js -r chai/register-should.js # Using Should style ``` [Read more about these styles in our docs](http://chaijs.com/guide/styles/). From 6c48966c311e050e096b97e1f7491c4760d838d6 Mon Sep 17 00:00:00 2001 From: Matti Schneider Date: Wed, 6 Mar 2024 15:42:55 +0530 Subject: [PATCH 2/2] 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 50792012..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.js # Using Assert style -mocha spec.js -r chai/register-expect.js # Using Expect style -mocha spec.js -r chai/register-should.js # 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/).