Skip to content

Commit 4f05679

Browse files
author
James Halliday
committed
fixed the nested test
1 parent 5329dc6 commit 4f05679

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

lib/results.js

+6-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,12 @@ Results.prototype.push = function (t, parentT) {
6161
}
6262
});
6363
self.push(st, t);
64-
if (subtests === 1) st.run();
64+
if (subtests === 1) {
65+
if (plan === undefined) st.run();
66+
else nextTick(function () {
67+
st.run();
68+
});
69+
}
6570
});
6671

6772
t.on('result', function (res) {

0 commit comments

Comments
 (0)