correct some tests
This commit is contained in:
parent
43ecfb016a
commit
b8b4970481
|
@ -4,12 +4,12 @@ moduleFor("controller:admin-group", {
|
|||
|
||||
QUnit.test("disablePublicSetting", function(assert) {
|
||||
this.subject().setProperties({
|
||||
model: { visible: false, allow_membership_requests: false }
|
||||
model: { visibility_level: 1, allow_membership_requests: false }
|
||||
});
|
||||
|
||||
assert.equal(this.subject().get("disablePublicSetting"), true, "it should disable setting");
|
||||
|
||||
this.subject().set("model.visible", true);
|
||||
this.subject().set("model.visibility_level", 0);
|
||||
|
||||
assert.equal(this.subject().get("disablePublicSetting"), false, "it should enable setting");
|
||||
|
||||
|
@ -20,12 +20,12 @@ QUnit.test("disablePublicSetting", function(assert) {
|
|||
|
||||
QUnit.test("disableMembershipRequestSetting", function(assert) {
|
||||
this.subject().setProperties({
|
||||
model: { visible: false, public: false, canEveryoneMention: true }
|
||||
model: { visibility_level: 1, public: false, canEveryoneMention: true }
|
||||
});
|
||||
|
||||
assert.equal(this.subject().get("disableMembershipRequestSetting"), true, "it should disable setting");
|
||||
|
||||
this.subject().set("model.visible", true);
|
||||
this.subject().set("model.visibility_level", 0);
|
||||
|
||||
assert.equal(this.subject().get("disableMembershipRequestSetting"), false, "it should enable setting");
|
||||
|
||||
|
|
Loading…
Reference in New Issue