From 031085d1d9dd5a421913e1572bc06ea45da8ba03 Mon Sep 17 00:00:00 2001 From: Lucas Vieira Date: Wed, 14 Sep 2016 22:34:39 -0300 Subject: [PATCH] Add toJSON to proxyExcludedKeys --- 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 9c8be3cff..ca1e30a79 100644 --- a/lib/chai/config.js +++ b/lib/chai/config.js @@ -90,5 +90,5 @@ module.exports = { * @api public */ - proxyExcludedKeys: ['then', 'inspect'] + proxyExcludedKeys: ['then', 'inspect', 'toJSON'] }; diff --git a/test/configuration.js b/test/configuration.js index 5eef76c8e..d0399c4a4 100644 --- a/test/configuration.js +++ b/test/configuration.js @@ -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() {