I have looked at Sure's DeepExplaination and come up with an idea for our explanation system.
All the failure message will have the following format, from which the second and the third line can be omitted.
BadExpectation:
A = ...
B = ...
C = ...
Expected A to {action} B.
{more_detail}
For example:
expect(1).to.eq(2)
will show us this error message:
BadExpectation:
A = 1
B = 2
Expected A to equal B.
I have looked at Sure's DeepExplaination and come up with an idea for our explanation system. All the failure message will have the following format, from which the second and the third line can be omitted.
For example:
expect(1).to.eq(2)
will show us this error message:
Another example:
gives us this error message: