Class: ATest

ATest

new ATest(testName, testFn)

Parameters:
Name Type Description
testName
testFn This should throw something to fail. Or you can use assert();
Source:

Methods

getStatus() → {string}

Source:
Returns:
queue|skip|running...|waiting|pass|fail
Type
string

run(waitForThisnullable, timeoutnullable)

Parameters:
Name Type Attributes Description
waitForThis function <nullable>
see SJTest.runTest()
timeout number <nullable>
milliseonds Defaults to 5,000
Source:

setStatus(s)

Parameters:
Name Type Description
s string Must be one of: queue|skip|running...|waiting|pass|fail
You can use setStatus('waiting') within a test function to defer pass/fail.
You can then use setStatus('fail') within a test function to explicitly fail the test.
Source: