expect icon indicating copy to clipboard operation
expect copied to clipboard

Expected {} to equal {}

Open IonicaBizau opened this issue 8 years ago • 1 comments

> expect(Object.create(null)).toEqual({})
Error: Expected {} to equal {}

They are different, because of prototype, but the output is weird.

IonicaBizau avatar Aug 21 '17 05:08 IonicaBizau

It might be worth special-casing objects whose [[Prototype]] isn't Object.prototype in the debug output.

If that's managed by object-inspect, please file an issue there for it (I don't recall if this project uses it or not)

ljharb avatar Aug 21 '17 20:08 ljharb