Skip to content

Commit

Permalink
partly fixed the test name ordering issue
Browse files Browse the repository at this point in the history
  • Loading branch information
James Halliday committed May 2, 2013
1 parent 0ac88b8 commit c4dc7ac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,15 @@ Test.prototype.run = function () {
if (this._skip) {
return this.end();
}
this.emit('run');
try {
this._cb(this);
}
catch (err) {
this.error(err);
this.end();
return;
}
this.emit('run');
};

Test.prototype.test = function (name, opts, cb) {
Expand Down

0 comments on commit c4dc7ac

Please sign in to comment.