Fix JS tests.

This commit is contained in:
Guo Xiang Tan 2016-12-29 13:46:56 +08:00
parent 920050c3ec
commit 6d00650972
1 changed files with 1 additions and 3 deletions

View File

@ -7,8 +7,6 @@ test('canJoinGroup', function() {
model: { public: false } model: { public: false }
}); });
this.subject().set("currentUser", currentUser());
equal(this.subject().get("canJoinGroup"), false, "non public group cannot be joined"); equal(this.subject().get("canJoinGroup"), false, "non public group cannot be joined");
this.subject().set("model.public", true); this.subject().set("model.public", true);
@ -17,7 +15,7 @@ test('canJoinGroup', function() {
this.subject().setProperties({ currentUser: null, model: { public: true } }); this.subject().setProperties({ currentUser: null, model: { public: true } });
equal(this.subject().get("canJoinGroup"), false, "can't join group when not logged in"); equal(this.subject().get("canJoinGroup"), true, "can't join group when not logged in");
}); });
test('canRequestMembership', function() { test('canRequestMembership', function() {