test-object-model
test-object-model
Tom ⏏
Kind: Exported class
new Tom([name], [testFn], [options])
Param | Type |
---|
[name] | string |
[testFn] | function |
[options] | object |
[options.timeout] | number |
tom.name : string
Test name
Kind: instance property of Tom
tom.testFn : function
Test function
Kind: instance property of Tom
tom.index
Position of this test within its parents children
Kind: instance property of Tom
tom.state
Test state: pending, start, skip, pass or fail.
Kind: instance property of Tom
tom.test()
Add a test.
Kind: instance method of Tom
tom.skip()
Add a skipped test
Kind: instance method of Tom
tom.only()
Add an only test
Kind: instance method of Tom
tom.run() ⇒ Promise
Execute the stored test function.
Kind: instance method of Tom
tom.reset()
Reset state
Kind: instance method of Tom
Tom.combine(toms, [name]) ⇒ Tom
Combine several TOM instances into a common root
Kind: static method of Tom
Param | Type |
---|
toms | Array.<Tom> |
[name] | string |
Tom~TestContext
The test context, available as this
within each test function.
Kind: inner class of Tom
© 2018-19 Lloyd Brookes <75pound@gmail.com>.