1 | ;
|
2 |
|
3 | var test = require('../');
|
4 |
|
5 | test('parent', function (t) {
|
6 | t.plan(3);
|
7 |
|
8 | var firstChildRan = false;
|
9 |
|
10 | t.pass('assertion in parent');
|
11 |
|
12 | t.test('first child', function (t) {
|
13 | t.plan(1);
|
14 | t.pass('pass first child');
|
15 | firstChildRan = true;
|
16 | });
|
17 |
|
18 | t.test('second child', function (t) {
|
19 | t.plan(2);
|
20 | t.ok(firstChildRan, 'first child ran first');
|
21 | t.pass('pass second child');
|
22 | });
|
23 | });
|