Skip to content

Commit

Permalink
Add test for running children asynchronously
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 2c06852 commit 709c36a
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions test/child_ordering_async.js
@@ -0,0 +1,15 @@
var test = require('../');

test('parent', function (t) {
var parentFinished = false;
setTimeout(function () {
t.pass('pass parent test');
parentFinished = true;
t.end();
})

t.test('child', function (t) {
t.ok(parentFinished, 'parent should finish before child runs');
t.end();
})
})

0 comments on commit 709c36a

Please sign in to comment.