Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

vieiralucas
Copy link
Member

Hello there,

While I was working on #799, I discovered that you cannot call JSON.stringify on an assertion because o proxify.

const { expect } = require('chai');

const equal1 = expect(1).to.equal(1);

JSON.stringify(equal); // Error: Invalid Chai property: toJSON

Hello there,

While I was working on #799, I discovered that you cannot call `JSON.stringify` on an assertion because o proxify.

```javascript
const { expect } = require('chai');

const equal = expect(1).to.equal(1);
JSON.stringify(equal); // This will throw Error: Invalid Chai property: toJSON
``
@vieiralucas vieiralucas deleted the add-toJSON-proxyExcludedKeys branch September 15, 2016 02:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant