diff --git a/test/regression/importer/importer_spec.js b/test/regression/importer/importer_spec.js index ceafe8f858..29ed2f4ae1 100644 --- a/test/regression/importer/importer_spec.js +++ b/test/regression/importer/importer_spec.js @@ -1193,7 +1193,7 @@ describe('Integration: Importer', function () { posts.length.should.eql(1); posts[0].mobiledoc.should.eql('{"version":"0.3.1","markups":[],"atoms":[],"cards":[["image",{"src":"source","cardWidth":"wide"}],["markdown",{"markdown":"# Post Content"}]],"sections":[[10,0],[10,1]],"ghostVersion":"3.0"}'); - posts[0].html.should.eql('

Post Content

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

Post Content

\n'); }); }); @@ -1254,10 +1254,10 @@ describe('Integration: Importer', function () { posts.length.should.eql(2); posts[0].mobiledoc.should.eql('{"version":"0.3.1","markups":[],"atoms":[],"cards":[["markdown",{"markdown":"## Post Content"}],["image",{"src":"source2","cardWidth":"not-wide"}]],"sections":[[10,0],[10,1]],"ghostVersion":"3.0"}'); - 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",{"markdown":"# Post Content"}]],"sections":[[10,0],[10,1]],"ghostVersion":"3.0"}'); - posts[1].html.should.eql('

Post Content

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

Post Content

\n'); }); }); @@ -1623,10 +1623,10 @@ describe('1.0', function () { posts.length.should.eql(2); posts[0].mobiledoc.should.eql('{"version":"0.3.1","markups":[],"atoms":[],"cards":[["markdown",{"markdown":"## Post Content"}],["image",{"src":"source2","cardWidth":"not-wide"}]],"sections":[[10,0],[10,1]],"ghostVersion":"3.0"}'); - 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",{"markdown":"# Post Content"}]],"sections":[[10,0],[10,1]],"ghostVersion":"3.0"}'); - posts[1].html.should.eql('

Post Content

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

Post Content

\n'); }); }); }); diff --git a/test/regression/models/model_posts_spec.js b/test/regression/models/model_posts_spec.js index fbcbb0fc47..2417fb9d9a 100644 --- a/test/regression/models/model_posts_spec.js +++ b/test/regression/models/model_posts_spec.js @@ -1144,7 +1144,7 @@ describe('Post Model', function () { models.Post.add(post, context).then((createdPost) => { createdPost.get('mobiledoc').should.equal('{"version":"0.3.1","atoms":[],"cards":[["image",{"src":"/content/images/card.jpg"}]],"markups":[["a",["href","/test"]]],"sections":[[1,"p",[[0,[0],1,"Testing"]]],[10,0]]}'); - createdPost.get('html').should.equal('

Testing

'); + createdPost.get('html').should.equal('

Testing

'); createdPost.get('custom_excerpt').should.equal('Testing links in custom excerpts'); createdPost.get('codeinjection_head').should.equal(''); createdPost.get('codeinjection_foot').should.equal(''); diff --git a/test/unit/lib/mobiledoc_spec.js b/test/unit/lib/mobiledoc_spec.js index 44d4189f7f..5bbd0a0932 100644 --- a/test/unit/lib/mobiledoc_spec.js +++ b/test/unit/lib/mobiledoc_spec.js @@ -80,7 +80,7 @@ describe('lib/mobiledoc', function () { }; mobiledocLib.mobiledocHtmlRenderer.render(mobiledoc) - .should.eql('

One
Two

Markdown card

\n

Some markdown

\n

Three


Birdies

Four

HTML card

\n

Some HTML

Embed card

'); + .should.eql('

One
Two

Markdown card

\n

Some markdown

\n

Three


Birdies

Four

HTML card

\n

Some HTML

Embed card

'); }); it('renders according to ghostVersion', function () { @@ -138,7 +138,7 @@ describe('lib/mobiledoc', function () { }; mobiledocLib.mobiledocHtmlRenderer.render(mobiledoc) - .should.eql('
Birdies
'); + .should.eql('
Birdies
'); }); it('does not render srcsets for non-resizable images', function () { @@ -158,7 +158,7 @@ describe('lib/mobiledoc', function () { }; mobiledocLib.mobiledocHtmlRenderer.render(mobiledoc) - .should.eql('
'); + .should.eql('
'); }); it('does not render srcsets when sharp is not available', function () { @@ -181,7 +181,7 @@ describe('lib/mobiledoc', function () { }; mobiledocLib.mobiledocHtmlRenderer.render(mobiledoc) - .should.eql('
'); + .should.eql('
'); }); it('does not render srcsets with incompatible storage engine', function () { @@ -204,7 +204,7 @@ describe('lib/mobiledoc', function () { }; mobiledocLib.mobiledocHtmlRenderer.render(mobiledoc) - .should.eql('
'); + .should.eql('
'); }); });