promise (resolver, label) public
This returns a thenable tailored for testing. It catches failed onSuccess
callbacks and invokes the Ember.Test.adapter.exception
callback in the last chained then.
This method should be returned by async helpers such as wait
.
Parameters:
-
resolver
Function
- The function used to resolve the promise.
-
label
String
- An optional string for identifying the promise.
Please login to continue.