Skip to content

Commit

Permalink
Merge pull request #1668 from liuhongjiang/fix-test-errors
Browse files Browse the repository at this point in the history
Fix test errors
  • Loading branch information
Xuanwo committed Dec 21, 2015
2 parents c5145ae + 126c584 commit a8128cf
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"chai-as-promised": "^5.1.0",
"eslint": "^1.8.0",
"eslint-config-hexo": "^1.0.2",
"hexo-renderer-marked": "^0.2.5",
"hexo-renderer-marked": "^0.2.7",
"istanbul": "^0.4.0",
"jscs": "^2.5.0",
"jscs-preset-hexo": "^1.0.1",
Expand Down
4 changes: 2 additions & 2 deletions test/fixtures/post_render.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ var content = [
exports.content = content;

exports.expected = [
'<h1 id="Title">Title</h1>',
'<h1 id="Title"><a href="#Title" class="headerlink" title="Title"></a>Title</h1>',
util.highlight(code, {lang: 'python'}),
'\n<p>some content</p>\n',
'<h2 id="Another_title">Another title</h2>',
'<h2 id="Another_title"><a href="#Another_title" class="headerlink" title="Another title"></a>Another title</h2>',
'<blockquote>',
'<p>quote content</p>\n',
'</blockquote>\n',
Expand Down
2 changes: 1 addition & 1 deletion test/scripts/box/file.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ describe('File', function() {
}

function getCacheId(path) {
return 'file_test/' + path;
return pathFn.join('file_test', path);
}

function removeCache(path) {
Expand Down
8 changes: 4 additions & 4 deletions test/scripts/processors/post.js
Original file line number Diff line number Diff line change
Expand Up @@ -578,8 +578,8 @@ describe('post', function() {
}).spread(function(stats) {
var post = Post.findOne({source: file.path});

post.date.toDate().should.eql(stats.ctime);
post.updated.toDate().should.eql(stats.mtime);
post.date.toDate().setMilliseconds(0).should.eql(stats.ctime.setMilliseconds(0));
post.updated.toDate().setMilliseconds(0).should.eql(stats.mtime.setMilliseconds(0));

return post.remove();
}).finally(function() {
Expand Down Expand Up @@ -924,8 +924,8 @@ describe('post', function() {
}).spread(function(stats) {
var post = Post.findOne({source: file.path});

post.date.toDate().should.eql(stats.ctime);
post.updated.toDate().should.eql(stats.mtime);
post.date.toDate().setMilliseconds(0).should.eql(stats.ctime.setMilliseconds(0));
post.updated.toDate().setMilliseconds(0).should.eql(stats.mtime.setMilliseconds(0));

return post.remove();
}).finally(function() {
Expand Down

0 comments on commit a8128cf

Please sign in to comment.