From b94fb2b54d3a79e2060bb1a1262941959ad87536 Mon Sep 17 00:00:00 2001 From: Max Schaefer Date: Thu, 5 May 2016 11:50:39 +0100 Subject: [PATCH] Fix useless comparison in sussonsAndGroups test. --- tests/backend/specs/api/sessionsAndGroups.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/backend/specs/api/sessionsAndGroups.js b/tests/backend/specs/api/sessionsAndGroups.js index 4089656ac..961cb2df9 100644 --- a/tests/backend/specs/api/sessionsAndGroups.js +++ b/tests/backend/specs/api/sessionsAndGroups.js @@ -156,7 +156,7 @@ describe('getAuthorName', function(){ it('Gets the author name', function(done) { api.get(endPoint('getAuthorName')+"&authorID="+authorID) .expect(function(res){ - if(res.body.code !== 0 || !res.body.data === "john") throw new Error("Unable to get Author Name from Author ID"); + if(res.body.code !== 0 || res.body.data !== "john") throw new Error("Unable to get Author Name from Author ID"); }) .expect('Content-Type', /json/) .expect(200, done)