0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-10 23:36:14 -05:00

Test update to handle downsize improvements

no-issue

- downsize is now better at white space and punctuation
This commit is contained in:
Hannah Wolfe 2014-12-14 23:34:01 +00:00
parent 9bb3be49d5
commit c7e03bbb01

View file

@ -50,7 +50,7 @@ describe('{{excerpt}} Helper', function () {
it('strips inline and bottom footnotes', function () {
var html = '<p>Testing<sup id="fnref:1"><a href="#fn:1" rel="footnote">1</a></sup> a very short post with a single footnote.</p>\n' +
'<div class="footnotes"><ol><li class="footnote" id="fn:1"><p><a href="https://ghost.org">https://ghost.org</a> <a href="#fnref:1" title="return to article">↩</a></p></li></ol></div>',
expected = 'Testing a very short post with a single footnote. ',
expected = 'Testing a very short post with a single footnote.',
rendered = helpers.excerpt.call({html: html});
should.exist(rendered);