diff --git a/lib/chai/config.js b/lib/chai/config.js index ca1e30a79..412a0c806 100644 --- a/lib/chai/config.js +++ b/lib/chai/config.js @@ -90,5 +90,5 @@ module.exports = { * @api public */ - proxyExcludedKeys: ['then', 'inspect', 'toJSON'] + proxyExcludedKeys: ['then', 'catch', 'inspect', 'toJSON'] }; diff --git a/test/configuration.js b/test/configuration.js index 1f929d110..712731419 100644 --- a/test/configuration.js +++ b/test/configuration.js @@ -788,8 +788,8 @@ describe('configuration', function () { } }; - it('should have default value equal to `[\'then\', \'inspect\', \'toJSON\']`', function() { - expect(chai.config.proxyExcludedKeys).to.be.deep.equal(['then', 'inspect', 'toJSON']); + it('should have default value equal to `[\'then\', \'catch\', \'inspect\', \'toJSON\']`', function() { + expect(chai.config.proxyExcludedKeys).to.be.deep.equal(['then', 'catch', 'inspect', 'toJSON']); }); it('should not throw when accessing non-existing `then` and `inspect` in an environment with proxy support', function() {