diff options
author | Kegan Dougal <kegan@matrix.org> | 2014-09-22 14:29:12 +0100 |
---|---|---|
committer | Kegan Dougal <kegan@matrix.org> | 2014-09-22 14:29:12 +0100 |
commit | e3152188ef27c1952185764ce0d1c072cb149d99 (patch) | |
tree | 068a742d908f5746f96a4a9a522eea0c1dae5d06 /webclient/test/unit/user-controller.spec.js | |
parent | Merge branch 'master' of github.com:matrix-org/synapse into develop (diff) | |
download | synapse-e3152188ef27c1952185764ce0d1c072cb149d99.tar.xz |
Added boilerplate for running end-to-end tests.\nThis is done using Protractor, which looks for a .gitignored file environment-protractor.js which contains the selenium endpoint url.
Diffstat (limited to 'webclient/test/unit/user-controller.spec.js')
-rw-r--r-- | webclient/test/unit/user-controller.spec.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/webclient/test/unit/user-controller.spec.js b/webclient/test/unit/user-controller.spec.js index 217559114b..798cc4de48 100644 --- a/webclient/test/unit/user-controller.spec.js +++ b/webclient/test/unit/user-controller.spec.js @@ -21,13 +21,12 @@ describe("UserCtrl", function() { getDisplayName: function(uid) { var d = $q.defer(); - // FIXME: everything goes into fire here d.resolve({ data: { displayname: displayName } }); - return d; + return d.promise; }, getProfilePictureUrl: function(uid) { @@ -37,7 +36,7 @@ describe("UserCtrl", function() { avatar_url: avatarUrl } }); - return d; + return d.promise; } }; scope = $rootScope.$new(); @@ -49,7 +48,6 @@ describe("UserCtrl", function() { '$routeParams': routeParams, 'matrixService': matrixService }); - console.log("end inject"); }); }); |