Merge pull request #2961 from xiemaisi/fix-2951

Fix useless comparison in sussonsAndGroups test.
This commit is contained in:
Stefan 2016-05-14 15:10:23 +02:00
commit f49de0b61b
1 changed files with 1 additions and 1 deletions

View File

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