From cf499c39a1a8c6cea25ac29fa152e6aaf82f6d62 Mon Sep 17 00:00:00 2001 From: Nazar Gargol Date: Tue, 19 Mar 2019 11:28:21 +0800 Subject: [PATCH] Fixed intergration tests refs #10612 - Fixed output of html field when mobiledoc field is empty --- core/test/regression/importer/importer_spec.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/test/regression/importer/importer_spec.js b/core/test/regression/importer/importer_spec.js index 4dac9579d7..53d0da69ea 100644 --- a/core/test/regression/importer/importer_spec.js +++ b/core/test/regression/importer/importer_spec.js @@ -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('

'); + 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('

'); + 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('

'); + 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('

'); + should(posts[0].html).eql(null); posts[0].mobiledoc.should.eql('{"version":"0.3.1","markups":[],"atoms":[],"cards":[],"sections":[[1,"p",[[0,[],0,""]]]]}'); }); });