Skip to content

Commit 188fbb1

Browse files
grncdrJames Halliday
authored and
James Halliday
committed
Add patch from @spion to make nested-sync-noplan-noend pass
1 parent 8449f1c commit 188fbb1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/test.js

+4
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@ Test.prototype.run = function () {
5858
return;
5959
}
6060
this.emit('run');
61+
var self = this;
62+
if (!this._plan && this._progeny.length) nextTick(function () {
63+
self.end();
64+
});
6165
};
6266

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

0 commit comments

Comments
 (0)