diff --git a/tests/without-config.js b/tests/without-config.js index 52a77a1..a6805c9 100644 --- a/tests/without-config.js +++ b/tests/without-config.js @@ -47,6 +47,19 @@ let posts = [
block 2 123
block 1 <span>
+2
3
4
+5
6
7
+8
9
10
+block 11 <span>
+`.trim() } ]; @@ -73,4 +86,9 @@ describe('Automatic excerpt generator with default depth config', () => { generatedPosts[2].data.excerpt.should.equal(''); }); + it('post with html entities should have them intact', () => { + generatedPosts[3].data.excerpt.should.equal('block 1 <span>
\n2
3
4
\n5
6
7
\n8
9
10
'); + generatedPosts[3].data.more.should.equal('\nblock 11 <span>
'); + }); + });