From 8bbcf70ce3a7ffeb5788556fb54d7e855e1ac60a Mon Sep 17 00:00:00 2001 From: Andy Edwards Date: Thu, 17 Dec 2020 23:20:53 -0600 Subject: [PATCH] add comment about use order to code example Some people seem to miss the note (https://github.com/debitoor/chai-subset/issues/69). It's easy to forget about this too...I only really grokked this behavior after digging into what `chai-as-promise` does under the hood. --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 293532c..e7b2f2f 100644 --- a/README.md +++ b/README.md @@ -216,6 +216,7 @@ Do an `npm install chai-as-promised` to get up and running. Then: var chai = require("chai"); var chaiAsPromised = require("chai-as-promised"); +// do this _after_ chai.use() for other plugins! chai.use(chaiAsPromised); // Then either: