Assertion: Not Empty
Asserts that an array is not empty
Example
this.assert.notEmpty(array);
Conditions
Passes if array contains any elements
Fails if array contains zero elements
Parameters
| Name | Description |
|---|---|
array |
the array to check |
message |
(optional) message to display on failure |