FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Fix tests · codingmaniac/hexo@997988d · GitHub

Repository navigation

Commit 997988d

Browse files
committed
Fix tests
1 parent 7edb3c5 commit 997988d

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

‎test/scripts/console/generate.js‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,8 @@ describe('generate', function(){
197197
fs.readFile(pathFn.join(hexo.public_dir, 'c.html'))
198198
]);
199199
}).then(function(result){
200-
console.log(result)
200+
result[0].should.eql('bb');
201+
result[1].should.eql('cc');
201202
});
202203
});
203204
});

‎test/scripts/hexo/post.js‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,8 @@ describe('Post', function(){
300300
title: 'Foo: Bar'
301301
}).then(function(data){
302302
data.content.should.eql([
303-
'title: "Foo: Bar"',
303+
// js-yaml use single-quotation for dumping since 3.3
304+
'title: \'Foo: Bar\'',
304305
'date: ' + moment(now).format('YYYY-MM-DD HH:mm:ss'),
305306
'tags:',
306307
'---'

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL