Classes
Methods
addTest(testnon-null) → {void}
Adds a new test to the suite.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
test |
Test
|
the test we'd like to add. |
Returns:
- Type:
-
void
after(releasingBlocknon-null) → {void}
Registers a piece of code that should be executed after each test. There should be one after
per suite, so it
will fail if there's already an after
block in the suite.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
releasingBlock |
function
|
the code you'd like to execute after each test. |
Returns:
- Type:
-
void
before(initializationBlocknon-null) → {void}
Registers a piece of code that should be executed before each test. There should be one before
per suite, so it
will fail if there's already a before
block in the suite.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
initializationBlock |
function
|
the code you'd like to execute before each test. |
Returns:
- Type:
-
void