Merge pull request #521 from jurko-gospodnetic/add-an-error-example

document how the `new Error` type gets detected by the `a`/`an` matcher
This commit is contained in:
Keith Cirkel 2015-09-22 16:49:46 +01:00
commit 5f4dcd272d

View file

@ -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');