mirror of
https://github.com/chaijs/chai
synced 2024-11-15 08:17:14 +00:00
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:
commit
5f4dcd272d
1 changed files with 1 additions and 0 deletions
|
@ -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');
|
||||
|
|
Loading…
Reference in a new issue