testdouble.js icon indicating copy to clipboard operation
testdouble.js copied to clipboard

Improve stringification of captor.capture() matcher

Open searls opened this issue 8 years ago • 0 comments

right now, captor.capture() matchers are printed out with an ugly toString() in error messages. they should be niceified like the other matchers.

currently just got:

All calls of the test double, in order were:
  - called with `("target", undefined, function (name, originalValue) { 
      return (0, _chainPrototype2.default)(overwriteChild(originalValue, '.' + name), name, originalValue, original); 
    })`.                                                                                    

That whole third arg should have been captor.capture() or the like

searls avatar Jun 24 '17 12:06 searls