diff --git a/test/child_ordering_async.js b/test/child_ordering_async.js new file mode 100644 index 00000000..32576455 --- /dev/null +++ b/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(); + }) +})