Fix check in backend tests
This commit is contained in:
parent
fb7856fc8f
commit
d7c4cc8e65
|
@ -501,7 +501,7 @@ describe('getText', function(){
|
||||||
api.get(endPoint('getText')+"&padID="+testPadId)
|
api.get(endPoint('getText')+"&padID="+testPadId)
|
||||||
.expect(function(res){
|
.expect(function(res){
|
||||||
if(res.body.code !== 0) throw new Error("Pad Get Text failed");
|
if(res.body.code !== 0) throw new Error("Pad Get Text failed");
|
||||||
if(res.body.data.text !== text+"\nhello") throw new Error("Pad Text not set properly");
|
if(res.body.data.text !== text+"hello\n") throw new Error("Pad Text not set properly");
|
||||||
})
|
})
|
||||||
.expect('Content-Type', /json/)
|
.expect('Content-Type', /json/)
|
||||||
.expect(200, done);
|
.expect(200, done);
|
||||||
|
|
Loading…
Reference in New Issue