deep-eq
v1.3.3
Published
deepEqual assertion with pretty diff
Downloads
14
Maintainers
Readme
deep-eq
Why?
assert.deepEqual
doesn't display well the diff between 2 objects- simple: no transpiling needed
const eq = require('deep-eq');
eq({foo: {ok: 1}}, {foo: {ok: 2, u: 0}});
outputs: (colors not shown, key and values (left/right) have different colors)
AssertionError:
foo.ok 1 foo.ok 2
foo.u 0
at ....stacktrace...