allanmboyd/nodeunit — comment on commit ccf0273ef9058be0606fcf58dad4674878e7fcbc
File:  line 0
By allanmboyd:

A lot of nodeunit reporters - maybe all - use utils.betterErrors. This function works fine as long as the assertion error has values for expected and actual. If these values do not exist then the we a message such as "AssertionError: undefined undefined undefined" - this happens for example with the assert.throws() assertion. The purpose of this commit it to resolve this issue so that betterErrors provides what the assertion was trying to communicate. As it happens this change also helps with richer assertion libraries such as should.js, which have many assertions that do not include expected or actual.