Merge pull request #2961 from xiemaisi/fix-2951
Fix useless comparison in sussonsAndGroups test.pull/2986/head
commit
f49de0b61b
|
@ -156,7 +156,7 @@ describe('getAuthorName', function(){
|
||||||
it('Gets the author name', function(done) {
|
it('Gets the author name', function(done) {
|
||||||
api.get(endPoint('getAuthorName')+"&authorID="+authorID)
|
api.get(endPoint('getAuthorName')+"&authorID="+authorID)
|
||||||
.expect(function(res){
|
.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('Content-Type', /json/)
|
||||||
.expect(200, done)
|
.expect(200, done)
|
||||||
|
|
Loading…
Reference in New Issue