From 9f63d9b76a08ec67c046b91bb1eec12188d9ac8d Mon Sep 17 00:00:00 2001 From: Richard Hansen Date: Sat, 26 Sep 2020 16:12:21 -0400 Subject: [PATCH] tests: Check for true/false, not truthiness --- tests/backend/specs/api/sessionsAndGroups.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/backend/specs/api/sessionsAndGroups.js b/tests/backend/specs/api/sessionsAndGroups.js index 870146d64..1e11ff0a1 100644 --- a/tests/backend/specs/api/sessionsAndGroups.js +++ b/tests/backend/specs/api/sessionsAndGroups.js @@ -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); }); }); });