-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
deepEqual does not descriminate by type #1685
Comments
Hi! This isn't related to mocha. However: That's how node's Or you could use var expect = require('chai').expect
expect({foo:10}).to.deep.equal({foo:'10'}) // AssertionError: expected { foo: 10 } to deeply equal { foo: '10' } chai docs about deep: http://chaijs.com/api/bdd/#deep-section |
FYI: io.js has introduced a see also: |
Thanks for all your help. |
Awesome, thanks for sharing @twada! |
Facing error 'Doc Type is visa | AssertionError: expected undefined to deeply equal 'visa' for following.' |
assert.deepEqual({foo:10}, {foo:'10'});
returnstrue
.The text was updated successfully, but these errors were encountered: