Skip to content

Commit

Permalink
Merge pull request #521 from jurko-gospodnetic/add-an-error-example
Browse files Browse the repository at this point in the history
document how the `new Error` type gets detected by the `a`/`an` matcher
  • Loading branch information
keithamus committed Sep 22, 2015
2 parents d7d9420 + 27b6f7d commit 5f4dcd2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/chai/core/assertions.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ module.exports = function (chai, _) {
* expect({ foo: 'bar' }).to.be.an('object');
* expect(null).to.be.a('null');
* expect(undefined).to.be.an('undefined');
* expect(new Error).to.be.an('error');
* expect(new Promise).to.be.a('promise');
* expect(new Float32Array()).to.be.a('float32array');
* expect(Symbol()).to.be.a('symbol');
Expand Down

0 comments on commit 5f4dcd2

Please sign in to comment.