diff options
author | John McLear <john@mclear.co.uk> | 2015-01-19 03:02:34 +0000 |
---|---|---|
committer | John McLear <john@mclear.co.uk> | 2015-01-19 03:02:34 +0000 |
commit | 7958f3b7232cd72e848b8922ac1ca7e2c0681515 (patch) | |
tree | 2101646c44ca4a5ec5f57223142cfb94a0588501 /tests/backend/specs/api | |
parent | 4f637befeb449fc7e401b8a2a6624d288da86633 (diff) | |
download | etherpad-lite-7958f3b7232cd72e848b8922ac1ca7e2c0681515.zip |
nearly fully working
Diffstat (limited to 'tests/backend/specs/api')
-rw-r--r-- | tests/backend/specs/api/pad.js | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/backend/specs/api/pad.js b/tests/backend/specs/api/pad.js index 012ce423..05f6bdd1 100644 --- a/tests/backend/specs/api/pad.js +++ b/tests/backend/specs/api/pad.js @@ -394,7 +394,6 @@ describe('getLastEdited', function(){ }); }) - describe('setHTML', function(){ it('Sets the HTML of a Pad attempting to pass ugly HTML', function(done) { var html = "<div><b>Hello HTML</title></head></div>"; @@ -409,7 +408,7 @@ describe('setHTML', function(){ describe('setHTML', function(){ it('Sets the HTML of a Pad with a bunch of weird unordered lists inserted', function(done) { - api.get(endPoint('setHTML')+"&padID=test&html="+ULhtml) + api.get(endPoint('setHTML')+"&padID="+testPadId+"&html="+ULhtml) .expect(function(res){ if(res.body.code !== 0) throw new Error("List HTML cant be imported") }) @@ -446,9 +445,9 @@ describe('getHTML', function(){ // <br> it('Gets the HTML of a Pad with a bunch of weird unordered lists inserted', function(done) { - api.get(endPoint('getHTML')+"&padID=test") + api.get(endPoint('getHTML')+"&padID="+testPadId) .expect(function(res){ - console.log(res.body.data.html); + console.log("foo", res.body.data.html); if(res.body.data !== ULhtml) throw new Error("Imported HTML does not match served HTML") }) .expect('Content-Type', /json/) |