Skip to content

Commit

Permalink
fix(test): delete /tmp/_multiconfig.yml file at the end of the test. (h…
Browse files Browse the repository at this point in the history
…exojs#3792)

* delete /tmp/_multiconfig.yml on test end
  • Loading branch information
dailyrandomphoto authored and Thomas Parisot committed Jan 17, 2020
1 parent 294f695 commit 88ed403
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/scripts/hexo/multi_config_path.js
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,9 @@ describe('config flag handling', () => {
mcp(base, 'notafile.yml,test1.json', outputPath).should.eql(combinedPath);
mcp(base, 'notafile.yml,alsonotafile.json', outputPath).should.not.eql(combinedPath);

// delete /tmp/_multiconfig.yml
fs.unlinkSync(combinedPath);

hexo.log.reader[1].type.should.eql('debug');
hexo.log.reader[1].msg.should.eql(`Writing _multiconfig.yml to ${combinedPath}`);
hexo.log.reader[2].type.should.eql('info');
Expand Down

0 comments on commit 88ed403

Please sign in to comment.