Skip to content

Commit

Permalink
add comment about use order to code example
Browse files Browse the repository at this point in the history
Some people seem to miss the note (debitoor/chai-subset#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.
  • Loading branch information
jedwards1211 authored Dec 18, 2020
1 parent 39bfd34 commit 8bbcf70
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 8bbcf70

Please sign in to comment.