From 6d006509721752dc33f0786c0ad59c478c73f0e1 Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Thu, 29 Dec 2016 13:46:56 +0800 Subject: [PATCH] Fix JS tests. --- .../components/group-membership-button-test.js.es6 | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/test/javascripts/components/group-membership-button-test.js.es6 b/test/javascripts/components/group-membership-button-test.js.es6 index ceeeee29e4a..579aa6f1adf 100644 --- a/test/javascripts/components/group-membership-button-test.js.es6 +++ b/test/javascripts/components/group-membership-button-test.js.es6 @@ -7,8 +7,6 @@ test('canJoinGroup', function() { model: { public: false } }); - this.subject().set("currentUser", currentUser()); - equal(this.subject().get("canJoinGroup"), false, "non public group cannot be joined"); this.subject().set("model.public", true); @@ -17,7 +15,7 @@ test('canJoinGroup', function() { 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() {