Skip to content

Commit

Permalink
Merge pull request #11226 from amiel/label-test-promises
Browse files Browse the repository at this point in the history
[BUGFIX beta] Pass label to Ember.Test.Promise
  • Loading branch information
rwjblue committed May 20, 2015
2 parents 0d56900 + 44c93e0 commit a96dda1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/ember-testing/lib/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,9 +173,11 @@ var Test = {
@public
@method promise
@param {Function} resolver The function used to resolve the promise.
@param {String} label An optional string for identifying the promise.
*/
promise(resolver) {
return new Test.Promise(resolver);
promise(resolver, label) {
var fullLabel = `Ember.Test.promise: ${label || "<Unknown Promise>"}`;
return new Test.Promise(resolver, fullLabel);
},

/**
Expand Down

0 comments on commit a96dda1

Please sign in to comment.