mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-19 14:13:34 +01:00
tests: Check for true/false, not truthiness
This commit is contained in:
parent
c18831c333
commit
9f63d9b76a
1 changed files with 4 additions and 4 deletions
|
@ -247,7 +247,7 @@ describe('API: Pad security', function() {
|
|||
.expect('Content-Type', /json/)
|
||||
.expect((res) => {
|
||||
assert.equal(res.body.code, 0);
|
||||
assert(!res.body.data.publicStatus);
|
||||
assert.equal(res.body.data.publicStatus, false);
|
||||
});
|
||||
});
|
||||
|
||||
|
@ -266,7 +266,7 @@ describe('API: Pad security', function() {
|
|||
.expect('Content-Type', /json/)
|
||||
.expect((res) => {
|
||||
assert.equal(res.body.code, 0);
|
||||
assert(res.body.data.publicStatus);
|
||||
assert.equal(res.body.data.publicStatus, true);
|
||||
});
|
||||
});
|
||||
|
||||
|
@ -276,7 +276,7 @@ describe('API: Pad security', function() {
|
|||
.expect('Content-Type', /json/)
|
||||
.expect((res) => {
|
||||
assert.equal(res.body.code, 0);
|
||||
assert(!res.body.data.isPasswordProtected);
|
||||
assert.equal(res.body.data.isPasswordProtected, false);
|
||||
});
|
||||
});
|
||||
|
||||
|
@ -295,7 +295,7 @@ describe('API: Pad security', function() {
|
|||
.expect('Content-Type', /json/)
|
||||
.expect((res) => {
|
||||
assert.equal(res.body.code, 0);
|
||||
assert(res.body.data.isPasswordProtected);
|
||||
assert.equal(res.body.data.isPasswordProtected, true);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue