Skip to content

Commit

Permalink
Update downsize node module. Small test updates.
Browse files Browse the repository at this point in the history
issue #4017
- downsize 0.0.5 -> 0.0.8
- downsize is now better at punctuation, update {{content}} and {{excerpt}} tests appropriately.

Conflicts:
	package.json
  • Loading branch information
adam-zethraeus committed Dec 1, 2014
1 parent f3de619 commit bfe91b5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion core/test/unit/server_helpers/content_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand Down
2 changes: 1 addition & 1 deletion core/test/unit/server_helpers/excerpt_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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},
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit bfe91b5

Please sign in to comment.