summary refs log tree commit diff
path: root/webclient/test/unit/user-controller.spec.js
diff options
context:
space:
mode:
authorKegan Dougal <kegan@matrix.org>2014-09-22 14:29:12 +0100
committerKegan Dougal <kegan@matrix.org>2014-09-22 14:29:12 +0100
commite3152188ef27c1952185764ce0d1c072cb149d99 (patch)
tree068a742d908f5746f96a4a9a522eea0c1dae5d06 /webclient/test/unit/user-controller.spec.js
parentMerge branch 'master' of github.com:matrix-org/synapse into develop (diff)
downloadsynapse-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 '')
-rw-r--r--webclient/test/unit/user-controller.spec.js6
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");
         });
     });