You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using mocha + chai in the browser. When an assertion fails, mocha displays like this:
AssertionError: expected { Object (0, 1, ...) } to have a length of 1 ...
It would be nice if it dumped the actual object to console.log instead of the string "Object (0, 1, ...)". Is this possible? I've asked a mocha guy about this, but he says it the matter of the assertion library.
The text was updated successfully, but these errors were encountered:
While the message is our responsibility (and we're working on making it better); diff output is the responsibility of the test runner, and it is missing in the Mocha HTML reporter. See mochajs/mocha#1348 for more.
I'm going to close this as its a duplicate of #469 for us. Feel free to continue the discussion in #469 or mochajs/mocha#1348.
Hi,
I'm using mocha + chai in the browser. When an assertion fails, mocha displays like this:
It would be nice if it dumped the actual object to console.log instead of the string "Object (0, 1, ...)". Is this possible? I've asked a mocha guy about this, but he says it the matter of the assertion library.
The text was updated successfully, but these errors were encountered: