Update downsize node module. Small test updates.
issue #4017 - downsize 0.0.5 -> 0.0.8 - downsize is now better at punctuation, update {{content}} and {{excerpt}} tests appropriately. Conflicts: package.json
This commit is contained in:
parent
f3de619ea7
commit
bfe91b5769
@ -36,7 +36,7 @@ describe('{{content}} helper', function () {
|
||||
);
|
||||
|
||||
should.exist(rendered);
|
||||
rendered.string.should.equal('<p>Hello <strong>World</strong></p>');
|
||||
rendered.string.should.equal('<p>Hello <strong>World!</strong></p>');
|
||||
});
|
||||
|
||||
it('can truncate html to 0 words', function () {
|
||||
|
@ -40,7 +40,7 @@ describe('{{excerpt}} Helper', function () {
|
||||
|
||||
it('can truncate html by word', function () {
|
||||
var html = '<p>Hello <strong>World! It\'s me!</strong></p>',
|
||||
expected = 'Hello World',
|
||||
expected = 'Hello World!',
|
||||
rendered = (
|
||||
helpers.excerpt.call(
|
||||
{html: html},
|
||||
|
@ -40,7 +40,7 @@
|
||||
"colors": "0.6.2",
|
||||
"compression": "1.2.0",
|
||||
"connect-slashes": "1.2.0",
|
||||
"downsize": "0.0.5",
|
||||
"downsize": "0.0.8",
|
||||
"express": "4.10.2",
|
||||
"express-hbs": "0.7.11",
|
||||
"fs-extra": "0.12.0",
|
||||
|
Loading…
Reference in New Issue
Block a user