From 897247978b290076d5f2aa70330bc17a13654155 Mon Sep 17 00:00:00 2001 From: Nazar Gargol Date: Tue, 26 Feb 2019 11:58:37 +0700 Subject: [PATCH] Fixed regression tests for importer no issue - Fixed breaking test suites that were introduced with 4f9e687f62e0f1023c1d10aa6b06d82c523fc2a6 --- core/test/regression/importer/importer_spec.js | 12 ++++++------ core/test/utils/fixtures/data-generator.js | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/core/test/regression/importer/importer_spec.js b/core/test/regression/importer/importer_spec.js index f2a16a02d3..ca6e5af4ea 100644 --- a/core/test/regression/importer/importer_spec.js +++ b/core/test/regression/importer/importer_spec.js @@ -1065,10 +1065,10 @@ describe('Integration: Importer', function () { posts.length.should.eql(2); posts[0].mobiledoc.should.eql('{"version":"0.3.1","markups":[],"atoms":[],"cards":[["markdown",{"cardName":"markdown","markdown":"## Post Content"}],["image",{"src":"source2","cardWidth":"not-wide"}]],"sections":[[10,0],[10,1]]}'); - posts[0].html.should.eql('

Post Content

\n
'); + posts[0].html.should.eql('

Post Content

\n
'); posts[1].mobiledoc.should.eql('{"version":"0.3.1","markups":[],"atoms":[],"cards":[["image",{"src":"source","cardWidth":"wide"}],["markdown",{"cardName":"markdown","markdown":"# Post Content"}]],"sections":[[10,0],[10,1]]}'); - posts[1].html.should.eql('

Post Content

\n'); + posts[1].html.should.eql('

Post Content

\n'); }); }); }); @@ -1382,7 +1382,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('

markdown

\n'); + posts[0].html.should.eql('

markdown

\n'); posts[0].mobiledoc.should.eql('{"version":"0.3.1","markups":[],"atoms":[],"cards":[["markdown",{"cardName":"markdown","markdown":"## markdown"}]],"sections":[[10,0]]}'); }); }); @@ -1407,7 +1407,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('

This is my post content

\n'); + posts[0].html.should.eql('

This is my post content

\n'); posts[0].mobiledoc.should.eql(exportData.data.posts[0].mobiledoc); }); }); @@ -1471,10 +1471,10 @@ describe('1.0', function () { posts.length.should.eql(2); posts[0].mobiledoc.should.eql('{"version":"0.3.1","markups":[],"atoms":[],"cards":[["markdown",{"cardName":"markdown","markdown":"## Post Content"}],["image",{"src":"source2","cardWidth":"not-wide"}]],"sections":[[10,0],[10,1]]}'); - posts[0].html.should.eql('

Post Content

\n
'); + posts[0].html.should.eql('

Post Content

\n
'); posts[1].mobiledoc.should.eql('{"version":"0.3.1","markups":[],"atoms":[],"cards":[["image",{"src":"source","cardWidth":"wide"}],["markdown",{"cardName":"markdown","markdown":"# Post Content"}]],"sections":[[10,0],[10,1]]}'); - posts[1].html.should.eql('

Post Content

\n'); + posts[1].html.should.eql('

Post Content

\n'); }); }); }); diff --git a/core/test/utils/fixtures/data-generator.js b/core/test/utils/fixtures/data-generator.js index d3765b6bbb..be6a2ab57c 100644 --- a/core/test/utils/fixtures/data-generator.js +++ b/core/test/utils/fixtures/data-generator.js @@ -46,7 +46,7 @@ DataGenerator.Content = { title: 'Short and Sweet', slug: 'short-and-sweet', mobiledoc: DataGenerator.markdownToMobiledoc('## testing\n\nmctesters\n\n- test\n- line\n- items'), - html: '

testing

\n

mctesters

\n\n', + html: '

testing

\n

mctesters

\n\n', plaintext: 'testing\nmctesters\n\n * test\n * line\n * items', feature_image: 'http://placekitten.com/500/200', meta_description: 'test stuff',