Skip to content

Commit

Permalink
improving the handling of promises, particularly for protractor
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesdbloom committed May 3, 2017
1 parent 2ba3c71 commit 5b882a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sendRequest.js
Expand Up @@ -16,7 +16,7 @@
var promise = (global.protractor ? protractor.promise : Q);
var deferred = promise.defer();

if (global.protractor) {
if (deferred.fulfill && !deferred.resolve) {
deferred.resolve = deferred.fulfill;
}
return deferred;
Expand Down

0 comments on commit 5b882a7

Please sign in to comment.