Skip to content

Commit

Permalink
add test for asynchronously adding subtests
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 35f29a8 commit 8b59a80
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/add-subtest-async.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
var test = require('../')

test('parent', function (t) {
t.pass('parent');
setTimeout(function () {
t.test('child', function (t) {
t.pass('child');
t.end();
});
}, 100)
})

0 comments on commit 8b59a80

Please sign in to comment.