Skip to content

Commit 77983ab

Browse files
author
James Halliday
committed
document t.test()
1 parent f6b844e commit 77983ab

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

readme.markdown

+6
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,12 @@ Assert that the function call `fn()` throws an exception.
136136

137137
Assert that the function call `fn()` does not throw an exception.
138138

139+
## t.test(name, cb)
140+
141+
Create a subtest with a new test handle `st` from `cb(st)` inside the current
142+
test `t`. `cb(st)` will only fire when `t` finishes. Additional tests queued up
143+
after `t` will not be run until all subtests finish.
144+
139145
## var htest = test.createHarness()
140146

141147
Create a new test harness instance, which is a function like `test()`, but with

0 commit comments

Comments
 (0)