Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add toJSON to proxyExcludedKeys #800

Closed
wants to merge 1 commit into from

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.

None yet

1 participant