Permalink
Browse files

Removed unneeded replace

  • Loading branch information...
choan committed Nov 29, 2008
1 parent a55543e commit af24617109152037cabc532d0716ed0c90cd8609
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/test_case.js
View
@@ -88,7 +88,7 @@ JsUnitTest.Unit.Testcase.prototype.error = function(error, test) {
this.actions['retry with throw'] = function() { test.run(true); };
this.messages.push(error.name + ": "+ error.message + "(" + JsUnitTest.inspect(error) + ")");
if( typeof console != "undefined" && console.error && console.warn && console.info) {
- console.error("Test '" + test.name.replace(/^\s+/), ''.replace(/\s+$/, '') + "' died, exception and test follows");
+ console.error("Test '" + test.name + "' died, exception and test follows");
console.info(error);
console.warn(test.test.toString());
}

0 comments on commit af24617

Please sign in to comment.