Skip to content

Commit

Permalink
Fixed issue with reporting object assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Jun 25, 2010
1 parent 707fcb0 commit 6e4893a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions bin/expresso
Expand Up @@ -299,11 +299,11 @@ function reportFailures() {
for (var test in failures[suite]) {
var err = failures[suite][test],
msg = err.toString(),
msg = err.stack.replace(msg, colorize('[red]{' + err + '}'));
msg = err.stack.replace(msg, err);
if (test.indexOf('uncaught') === 0) {
test = '';
}
print('\n ' + ++n + ') [bold]{' + test + '}: ' + msg + '\n');
print('\n ' + ++n + ') [red]{' + test + '}: ' + msg + '\n');
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion test/helpers.b.test.js
Expand Up @@ -15,7 +15,7 @@ exports['test select()'] = function(assert){
}

exports['test exception'] = function(assert){
assert.equal('foo', 'bar');
assert.deepEqual({ foo: 'bar', baz: 'raz' }, { foo: 'bar' });
}

exports['test exception again'] = function(assert){
Expand Down

0 comments on commit 6e4893a

Please sign in to comment.