summary refs log tree commit diff
path: root/syweb/webclient/test
diff options
context:
space:
mode:
authorKegan Dougal <kegan@matrix.org>2014-11-06 13:37:05 +0000
committerKegan Dougal <kegan@matrix.org>2014-11-06 13:37:05 +0000
commit8bcd36377a04bede2e2d74dcd7f18742d0982ad5 (patch)
tree4e7ebaf21d90abcd9d6f8ee9966fa8aca760c907 /syweb/webclient/test
parentUse .not.toEqual instead of .toNotEqual which is in a newer version of Jasmine. (diff)
downloadsynapse-8bcd36377a04bede2e2d74dcd7f18742d0982ad5.tar.xz
Factor out room name logic: mRoomName is the canonical source.
Diffstat (limited to 'syweb/webclient/test')
-rw-r--r--syweb/webclient/test/unit/register-controller.spec.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/syweb/webclient/test/unit/register-controller.spec.js b/syweb/webclient/test/unit/register-controller.spec.js
index ce6ef1f4e2..b5c7842358 100644
--- a/syweb/webclient/test/unit/register-controller.spec.js
+++ b/syweb/webclient/test/unit/register-controller.spec.js
@@ -76,8 +76,8 @@ describe("RegisterController ", function() {
         scope.account.pwd1 = "password";
         scope.account.pwd2 = "password";
         scope.account.desired_user_id = "bob";
-        scope.register();
-        rootScope.$digest();
+        scope.register(); // this depends on the result of a deferred
+        rootScope.$digest(); // which is delivered after the digest
         
         expect(scope.feedback).not.toEqual(prevFeedback);
     });