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

Assertion error does not state problematic parts for Maps #61

Open
el opened this issue Oct 11, 2018 · 1 comment
Open

Assertion error does not state problematic parts for Maps #61

el opened this issue Oct 11, 2018 · 1 comment

Comments

@el
Copy link

el commented Oct 11, 2018

chai.expect(new Map([['a','a']])).to.deep.equal(new Map([['a','b']]))
// AssertionError: expected {} to deeply equal {}
chai.expect([['a','a']]).to.deep.equal([['a','b']])
// AssertionError: expected [ [ 'a', 'a' ] ] to deeply equal [ [ 'a', 'b' ] ]

As you can se it is not clear why it fails from the error message

@pcorpet
Copy link

pcorpet commented Jan 22, 2019

I believe this is not a deep-eql issue, but rather a display issue in chai itself. chaijs/chai#1228

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

No branches or pull requests

2 participants