diff --git a/tests/backend/specs/api/pad.js b/tests/backend/specs/api/pad.js index b755a88c2..2c3ad2fd2 100644 --- a/tests/backend/specs/api/pad.js +++ b/tests/backend/specs/api/pad.js @@ -219,7 +219,11 @@ describe('getText', function(){ describe('setText', function(){ it('creates a new Pad with text', function(done) { - api.get(endPoint('setText')+"&padID="+testPadId+"&text=testTextTwo") + api.post(endPoint('setText')) + .send({ + "padID": testPadId, + "text": "testTextTwo", + }) .expect(function(res){ if(res.body.code !== 0) throw new Error("Pad setting text failed"); }) @@ -334,7 +338,11 @@ describe('getLastEdited', function(){ describe('setText', function(){ it('creates a new Pad with text', function(done) { - api.get(endPoint('setText')+"&padID="+testPadId+"&text=testTextTwo") + api.post(endPoint('setText')) + .send({ + "padID": testPadId, + "text": "testTextTwo", + }) .expect(function(res){ if(res.body.code !== 0) throw new Error("Pad setting text failed"); }) @@ -394,8 +402,11 @@ describe('createPad', function(){ describe('setText', function(){ it('Sets text on a pad Id', function(done) { - api.post(endPoint('setText')+"&padID="+testPadId) - .send({text: text}) + api.post(endPoint('setText')) + .send({ + "padID": testPadId, + "text": text, + }) .expect(function(res){ if(res.body.code !== 0) throw new Error("Pad Set Text failed") }) @@ -533,7 +544,11 @@ describe('getText', function(){ describe('setHTML', function(){ it('Sets the HTML of a Pad attempting to pass ugly HTML', function(done) { var html = "