assert
Provides generic assertion methods.
contain
Asserts that the string value contains a substring.
Parameters:
Name | Type | Description |
---|---|---|
|
| Actual value. |
|
| Verbatim string to be contained. |
|
|
|
equal
Asserts that two values are equal (non-strict equality).
Parameters:
Name | Type | Description |
---|---|---|
|
| Actual value. |
|
| Expected value. Either an object or a string prefixed with |
|
|
|
fail
Fails test with the given message.
Parameters:
Name | Type | Description |
---|---|---|
|
|
|
notEqual
Asserts that two values are not equal (non-strict inequality).
Parameters:
Name | Type | Description |
---|---|---|
|
| Actual value. |
|
| Expected value. Either an object or a string prefixed with |
|
|
|
pass
Passes the test with the given message.
Parameters:
Name | Type | Description |
---|---|---|
|
|
|
Last updated