power-assert icon indicating copy to clipboard operation
power-assert copied to clipboard

Integration with Mocha's diffs via err.expected and err.actual

Open ELLIOTTCABLE opened this issue 8 years ago • 1 comments

So, Mocha provides diffs on test failures, by examining the thrown AssertionError's .expected and .actual properties. Unfortunately, these are rather redundant, with power-assert's output:

screen shot 2017-06-07 at 7 20 37 pm

It'd be ideal if, in the context of Mocha, power-assert could only dump its graph-style output, and leave the diffing-style output to Mocha (or at least, instruct Mocha not to do redundant diffing-style output!)

ELLIOTTCABLE avatar Jun 08 '17 00:06 ELLIOTTCABLE

@ELLIOTTCABLE Thank you for your feature request. Exactly. Now this feature is in my next milestone.

twada avatar Jun 08 '17 01:06 twada