groupon / assertive

Assertive is a terse yet expressive assertion library
BSD 3-Clause "New" or "Revised" License
21 stars 11 forks source link

New `deepEqual` diff breaks on functions #35

Open jkrems opened 7 years ago

jkrems commented 7 years ago

The nicer diffs look great - but when you compare to a function, it breaks:

assert.equal(function () {}, function () {});
// throws something about trying to call .split on undefined