Test#promise()

promise (resolver, label) public

Defined in packages/ember-testing/lib/test/promise.js:21

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.
doc_EmberJs
2016-11-30 16:53:42
Comments
Leave a Comment

Please login to continue.