Skip to content

Commit c4dc7ac

Browse files
author
James Halliday
committed
partly fixed the test name ordering issue
1 parent 0ac88b8 commit c4dc7ac

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/test.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,15 @@ Test.prototype.run = function () {
4747
if (this._skip) {
4848
return this.end();
4949
}
50-
this.emit('run');
5150
try {
5251
this._cb(this);
5352
}
5453
catch (err) {
5554
this.error(err);
5655
this.end();
56+
return;
5757
}
58+
this.emit('run');
5859
};
5960

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

0 commit comments

Comments
 (0)