From 7d5edda7c4949a6d99e33c770d4cdb9273022edf Mon Sep 17 00:00:00 2001 From: Andrew Miller Date: Mon, 4 Dec 2017 14:53:29 -0800 Subject: [PATCH] feat(chai/config): add 'catch' to proxyExcludedKeys closes #1050 --- lib/chai/config.js | 2 +- test/configuration.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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() {