Merge pull request #2937 from Gared/fix_backend_test_error

Fix check in backend tests
pull/2935/merge
John McLear 2016-03-26 22:08:56 +08:00
commit 9b1598d50c
1 changed files with 1 additions and 1 deletions

View File

@ -501,7 +501,7 @@ describe('getText', function(){
api.get(endPoint('getText')+"&padID="+testPadId)
.expect(function(res){
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(200, done);