Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tommy351 committed Apr 27, 2015
1 parent 7edb3c5 commit 997988d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion test/scripts/console/generate.js
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,8 @@ describe('generate', function(){
fs.readFile(pathFn.join(hexo.public_dir, 'c.html'))
]);
}).then(function(result){
console.log(result)
result[0].should.eql('bb');
result[1].should.eql('cc');
});
});
});
3 changes: 2 additions & 1 deletion test/scripts/hexo/post.js
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,8 @@ describe('Post', function(){
title: 'Foo: Bar'
}).then(function(data){
data.content.should.eql([
'title: "Foo: Bar"',
// js-yaml use single-quotation for dumping since 3.3
'title: \'Foo: Bar\'',
'date: ' + moment(now).format('YYYY-MM-DD HH:mm:ss'),
'tags:',
'---'
Expand Down

0 comments on commit 997988d

Please sign in to comment.