| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -197,7 +197,8 @@ describe('generate', function(){ | |||
| 197 | 197 | fs.readFile(pathFn.join(hexo.public_dir, 'c.html')) | |
| 198 | 198 | ]); | |
| 199 | 199 | }).then(function(result){ | |
| 200 | - console.log(result) | ||
| 200 | + result[0].should.eql('bb'); | ||
| 201 | + result[1].should.eql('cc'); | ||
| 201 | 202 | }); | |
| 202 | 203 | }); | |
| 203 | 204 | }); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -300,7 +300,8 @@ describe('Post', function(){ | |||
| 300 | 300 | title: 'Foo: Bar' | |
| 301 | 301 | }).then(function(data){ | |
| 302 | 302 | data.content.should.eql([ | |
| 303 | - 'title: "Foo: Bar"', | ||
| 303 | + // js-yaml use single-quotation for dumping since 3.3 | ||
| 304 | + 'title: \'Foo: Bar\'', | ||
| 304 | 305 | 'date: ' + moment(now).format('YYYY-MM-DD HH:mm:ss'), | |
| 305 | 306 | 'tags:', | |
| 306 | 307 | '---' | |
| Back | FazBrowse Home | New Git URL |
0 commit comments