Fixed intergration tests

refs #10612

- Fixed output of html field when mobiledoc field is empty
This commit is contained in:
Nazar Gargol 2019-03-19 11:28:21 +08:00
parent 2517e9dc65
commit cf499c39a1

View File

@ -1359,10 +1359,10 @@ describe('1.0', function () {
const posts = result[0].data.map((model) => model.toJSON(options));
posts.length.should.eql(2);
posts[0].html.should.eql('<p></p>');
should(posts[0].html).eql(null);
posts[0].mobiledoc.should.eql('{"version":"0.3.1","markups":[],"atoms":[],"cards":[],"sections":[[1,"p",[[0,[],0,""]]]]}');
posts[1].html.should.eql('<p></p>');
should(posts[1].html).eql(null);
posts[1].mobiledoc.should.eql('{"version":"0.3.1","markups":[],"atoms":[],"cards":[],"sections":[[1,"p",[[0,[],0,""]]]]}');
});
});
@ -1388,7 +1388,7 @@ describe('1.0', function () {
const posts = result[0].data.map((model) => model.toJSON(options));
posts.length.should.eql(1);
posts[0].html.should.eql('<p></p>');
should(posts[0].html).eql(null);
posts[0].mobiledoc.should.eql('{"version":"0.3.1","markups":[],"atoms":[],"cards":[],"sections":[[1,"p",[[0,[],0,""]]]]}');
});
});
@ -1414,7 +1414,7 @@ describe('1.0', function () {
const posts = result[0].data.map((model) => model.toJSON(options));
posts.length.should.eql(1);
posts[0].html.should.eql('<p></p>');
should(posts[0].html).eql(null);
posts[0].mobiledoc.should.eql('{"version":"0.3.1","markups":[],"atoms":[],"cards":[],"sections":[[1,"p",[[0,[],0,""]]]]}');
});
});