Skip to content

Commit

Permalink
feat(chai/config): add 'catch' to proxyExcludedKeys (#1101)
Browse files Browse the repository at this point in the history
closes #1050
  • Loading branch information
generalandrew authored and keithamus committed Dec 10, 2017
1 parent eae99d1 commit 0af30b7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/chai/config.js
Expand Up @@ -90,5 +90,5 @@ module.exports = {
* @api public
*/

proxyExcludedKeys: ['then', 'inspect', 'toJSON']
proxyExcludedKeys: ['then', 'catch', 'inspect', 'toJSON']
};
4 changes: 2 additions & 2 deletions test/configuration.js
Expand Up @@ -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() {
Expand Down

0 comments on commit 0af30b7

Please sign in to comment.