tests: Check for true/false, not truthiness

pull/4358/head
Richard Hansen 2020-09-26 16:12:21 -04:00 committed by John McLear
parent c18831c333
commit 9f63d9b76a
1 changed files with 4 additions and 4 deletions

View File

@ -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);
});
});
});