Skip to content

Instantly share code, notes, and snippets.

@russellhaering
Created September 3, 2010 08:29
Show Gist options
  • Save russellhaering/563608 to your computer and use it in GitHub Desktop.
Save russellhaering/563608 to your computer and use it in GitHub Desktop.
function TestAssert(testname) {
this.testname = testname;
}
TestAssert.prototype = assert;
TestAssert.prototype.fail = function() {
try {
assert.fail.call(this, arguments);
}
catch (err) {
err.testname = this.testname;
throw err;
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment