working importing of weird lis
parent
2c10738331
commit
5e55d3cc2c
|
@ -293,8 +293,8 @@ describe('setHTML', function(){
|
||||||
})
|
})
|
||||||
|
|
||||||
describe('setHTML', function(){
|
describe('setHTML', function(){
|
||||||
it('Sets the HTML of a Pad attempting to pass ugly HTML', function(done) {
|
it('Sets the HTML of a Pad with a bunch of weird unordered lists inserted', function(done) {
|
||||||
var html = "<!DOCTYPE html><html><head></head><body><ul><li>UL1</li><ul><li>UL2</li></ul></ul></body></html>";
|
var html = "<!DOCTYPE html><html><head></head><body><ul><li>one</li><li>2</li></ul><br/><ul><ul><li>UL2</li></ul></ul></body></html>";
|
||||||
api.get(endPoint('setHTML')+"&padID=test&html="+html)
|
api.get(endPoint('setHTML')+"&padID=test&html="+html)
|
||||||
.expect(function(res){
|
.expect(function(res){
|
||||||
if(res.body.code !== 0) throw new Error("List HTML cant be imported")
|
if(res.body.code !== 0) throw new Error("List HTML cant be imported")
|
||||||
|
|
Loading…
Reference in New Issue