visionmedia/mocha — pull request #993 by blalor (2013-10-06 12:42:52+00:00)
Title: Include assertion message as context

Resolves #991

This expect statement

expect("foo", "the foo").to.equal("bar");

now includes "the foo" as context for the failed match.

1) reporter shows reason for failed assertion:

the foo
+ expected - actual

+"bar"
-"foo"