working importing of weird lis

pull/2403/merge^2
John McLear 2014-12-27 17:32:36 +01:00
parent 2c10738331
commit 5e55d3cc2c
1 changed files with 2 additions and 2 deletions

View File

@ -293,8 +293,8 @@ describe('setHTML', function(){
})
describe('setHTML', function(){
it('Sets the HTML of a Pad attempting to pass ugly HTML', function(done) {
var html = "<!DOCTYPE html><html><head></head><body><ul><li>UL1</li><ul><li>UL2</li></ul></ul></body></html>";
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>one</li><li>2</li></ul><br/><ul><ul><li>UL2</li></ul></ul></body></html>";
api.get(endPoint('setHTML')+"&padID=test&html="+html)
.expect(function(res){
if(res.body.code !== 0) throw new Error("List HTML cant be imported")