Optional. Linked JasmineAsyncEnv to base the original this one on.
Property to hold the current data response from the server. Utility methods on this class act upon this object.
Should be called by the callback passed to wrap() to complete a test case. By default all tests that use wrap() are setup async so need to call this method
Optional. Linked JasmineAsyncEnv to base the original this one on.
Indicates if any of the tests using this environment have failed. The wrap() method will not execute its callback on any further tests if this is true
Utility method, used to check if a property exists on this.currentBody. Property identifier propertyName is passed using string values that can contain dots and array accessors. This means we can "try" access properties that would otherwise cause runtime errors without a lot of if statements.
The identifier for the source property on this.currentBody
The value from this.currentBody[propertyName] if found
Makes sure the supplied property doesn't exist on the currentBody
Returns the value found on currentBody using the property name
Utility method, used to check if an array of properties exist on this.currentBody
List of properties to check
Utility method to check for a string based property on this.currentBody. Will throw a descriptive expect().toBe() error if not found or not equal
The identifier for the property to match against on this.currentBody
The expected value to check against
Weather to check using a != vs !==
Utility method to move all non built in properties on the env into an isolated object with a name
Utility method, used to set a property from this.currentBody onto this object. Property identifiers for source and destination are passed using string values that can contain dots and array accessors. This means we can "try" access properties that would otherwise cause runtime errors without a lot of if statements. If the sourceName is not found on this.currentBody no property is set
The identifier for the destination property on this object
The identifier for the source property on this.currentBody
The value from this.currentBody[sourceName] if found
Wrapper for a test method. The cb will only be executed if the all the previous tests have passed.
The test method to wrap
A function to pass to the jasmine it() method.
Generated using TypeDoc
JasmineAsyncEnv
Environment class that links a number tests in a sequence with the wrap() method.