summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn McLear <john@mclear.co.uk>2015-01-19 03:02:34 +0000
committerJohn McLear <john@mclear.co.uk>2015-01-19 03:02:34 +0000
commit7958f3b7232cd72e848b8922ac1ca7e2c0681515 (patch)
tree2101646c44ca4a5ec5f57223142cfb94a0588501
parent4f637befeb449fc7e401b8a2a6624d288da86633 (diff)
downloadetherpad-lite-7958f3b7232cd72e848b8922ac1ca7e2c0681515.zip
nearly fully working
-rw-r--r--tests/backend/specs/api/pad.js7
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/)