File tree 2 files changed +14
-12
lines changed
2 files changed +14
-12
lines changed Original file line number Diff line number Diff line change @@ -3,9 +3,9 @@ var test = require('../')
3
3
test ( 'parent' , function ( t ) {
4
4
t . pass ( 'parent' ) ;
5
5
setTimeout ( function ( ) {
6
- t . test ( 'child' , function ( t ) {
7
- t . pass ( 'child' ) ;
8
- t . end ( ) ;
6
+ t . test ( 'child' , function ( st ) {
7
+ st . pass ( 'child' ) ;
8
+ st . end ( ) ;
9
9
} ) ;
10
- } , 100 )
10
+ } , 100 ) ;
11
11
} )
Original file line number Diff line number Diff line change @@ -5,19 +5,21 @@ var asyncFunction = function (callback) {
5
5
} ;
6
6
7
7
test ( 'master test' , function ( t ) {
8
- t . test ( 'subtest 1' , function ( t ) {
9
- t . pass ( 'subtest 1 before async call' ) ;
8
+ t . test ( 'subtest 1' , function ( st ) {
9
+ st . pass ( 'subtest 1 before async call' ) ;
10
10
asyncFunction ( function ( ) {
11
- t . pass ( 'subtest 1 in async callback' ) ;
12
- t . end ( ) ;
11
+ st . pass ( 'subtest 1 in async callback' ) ;
12
+ st . end ( ) ;
13
13
} )
14
14
} ) ;
15
15
16
- t . test ( 'subtest 2' , function ( t ) {
17
- t . pass ( 'subtest 2 before async call' ) ;
16
+ t . test ( 'subtest 2' , function ( st ) {
17
+ st . pass ( 'subtest 2 before async call' ) ;
18
18
asyncFunction ( function ( ) {
19
- t . pass ( 'subtest 2 in async callback' ) ;
20
- t . end ( ) ;
19
+ st . pass ( 'subtest 2 in async callback' ) ;
20
+ st . end ( ) ;
21
21
} )
22
22
} ) ;
23
+
24
+ t . end ( ) ;
23
25
} ) ;
You can’t perform that action at this time.
0 commit comments