Skip to content

Commit

Permalink
Add second @spion patch
Browse files Browse the repository at this point in the history
  • Loading branch information
grncdr authored and James Halliday committed Oct 25, 2013
1 parent a43860b commit 35f29a8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,18 @@ Test.prototype.test = function (name, opts, cb) {
t.on('prerun', function () {
self.assertCount++;
})

if (!self._pendingAsserts()) {
nextTick(function () {
self.end();
});
}

nextTick(function() {
if (!self._plan && self.pendingCount == self._progeny.length) {
self.end();
}
});
};

Test.prototype.comment = function (msg) {
Expand Down

0 comments on commit 35f29a8

Please sign in to comment.