Skip to content

Commit 78e48c9

Browse files
grncdrJames Halliday
authored and
James Halliday
committed
Remove 'next' event
After all the other changes, it turns out to be redundant.
1 parent 188fbb1 commit 78e48c9

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

lib/results.js

-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ Results.prototype._watch = function (t) {
6666
});
6767

6868
t.on('test', function (st) { self._watch(st) });
69-
t.on('next', function (st) { st.run() });
7069
};
7170

7271
Results.prototype.close = function () {

lib/test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ Test.prototype.end = function () {
9797
t.on('end', function () {
9898
self.end();
9999
});
100-
this.emit('next', t);
100+
t.run();
101101
return;
102102
}
103103

0 commit comments

Comments
 (0)