Skip to content

Commit 8b59a80

Browse files
grncdrJames Halliday
authored and
James Halliday
committed
add test for asynchronously adding subtests
1 parent 35f29a8 commit 8b59a80

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

test/add-subtest-async.js

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
var test = require('../')
2+
3+
test('parent', function (t) {
4+
t.pass('parent');
5+
setTimeout(function () {
6+
t.test('child', function (t) {
7+
t.pass('child');
8+
t.end();
9+
});
10+
}, 100)
11+
})

0 commit comments

Comments
 (0)