Skip to content

Commit db1baf0

Browse files
author
James Halliday
committed
passing nested test
1 parent 7481178 commit db1baf0

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

test/nested2.js

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
var test = require('../');
2+
3+
test(function(t) {
4+
var i = 0
5+
t.test('setup', function(t) {
6+
process.nextTick(function() {
7+
t.equal(i, 0, 'called once')
8+
i++
9+
t.end()
10+
})
11+
})
12+
13+
14+
t.test('teardown', function(t) {
15+
t.end()
16+
})
17+
18+
t.end()
19+
})

0 commit comments

Comments
 (0)