mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-06 22:40:14 -05:00
Fixed intergration tests
refs #10612 - Fixed output of html field when mobiledoc field is empty
This commit is contained in:
parent
2517e9dc65
commit
cf499c39a1
1 changed files with 4 additions and 4 deletions
|
@ -1359,10 +1359,10 @@ describe('1.0', function () {
|
||||||
const posts = result[0].data.map((model) => model.toJSON(options));
|
const posts = result[0].data.map((model) => model.toJSON(options));
|
||||||
|
|
||||||
posts.length.should.eql(2);
|
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[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,""]]]]}');
|
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));
|
const posts = result[0].data.map((model) => model.toJSON(options));
|
||||||
|
|
||||||
posts.length.should.eql(1);
|
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,""]]]]}');
|
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));
|
const posts = result[0].data.map((model) => model.toJSON(options));
|
||||||
|
|
||||||
posts.length.should.eql(1);
|
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,""]]]]}');
|
posts[0].mobiledoc.should.eql('{"version":"0.3.1","markups":[],"atoms":[],"cards":[],"sections":[[1,"p",[[0,[],0,""]]]]}');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue