You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that deepEquals is not working correctly for Map (or whatever that is being transpiled into by babel)
it('Dummy map test',()=>{constbeforeState=newMap([[1,'a'],[2,'b']]);// Any one of these will be considered deeply equal// This one correctly equal// const afterState = new Map([[1, 'a'], [2, 'b']]);// None of these ones are correct// const afterState = new Map([[1, 'a'], [2, 'c']]);// const afterState = new Map([[1, 'a'], [3, 'b']]);constafterState=newMap();chai.assert.deepEqual(beforeState,afterState);});
@dpwrussell Thanks for posting! This is a known issue in the deep-eql module used by Chai but is actively being worked on as part of a major refactor. Status of that issue can be tracked at chaijs/deep-eql#4. Gonna close this one as a duplicate.
It seems that
deepEquals
is not working correctly for Map (or whatever that is being transpiled into by babel)Test run like so:
Result:
✓ Dummy map test
The text was updated successfully, but these errors were encountered: