new EachSubject(The, elements, elementName, opt_noIndex)
A subject which executes its assertions on each element of an iterable.
Parameters:
Name | Type | Description |
---|---|---|
The |
Subject | subject responsible for creating this. |
elements |
Array | List of elements to test. |
elementName |
string | What noun to use when referring to elements ('item', 'child', etc.) |
opt_noIndex |
bool | If true, don't include the element index in the failure message. |
- Source:
Extends
Methods
invoke()
Called for a proxied method; invokes the method once for every element in the list.
- Overrides:
- Source: