Skip to content

Commit

Permalink
Merge pull request #801 from vieiralucas/add-toJSON-proxyExcludedKeys
Browse files Browse the repository at this point in the history
Add toJSON to proxyExcludedKeys
  • Loading branch information
keithamus committed Sep 15, 2016
2 parents c9cb468 + 031085d commit dfbcf8f
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
Original file line number Diff line number Diff line change
Expand Up @@ -90,5 +90,5 @@ module.exports = {
* @api public
*/

proxyExcludedKeys: ['then', 'inspect']
proxyExcludedKeys: ['then', 'inspect', 'toJSON']
};
4 changes: 2 additions & 2 deletions test/configuration.js
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,8 @@ describe('configuration', function () {
}
};

it('should have default value equal to `[\'then\', \'inspect\']`', function() {
expect(chai.config.proxyExcludedKeys).to.be.deep.equal(['then', 'inspect']);
it('should have default value equal to `[\'then\', \'inspect\', \'toJSON\']`', function() {
expect(chai.config.proxyExcludedKeys).to.be.deep.equal(['then', '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 dfbcf8f

Please sign in to comment.