Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
tomap committed Aug 19, 2019
1 parent b063597 commit 677f5b8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions test/scripts/processors/asset.js
Original file line number Diff line number Diff line change
Expand Up @@ -284,10 +284,11 @@ describe('asset', () => {
const file = newFile({
path: 'hello.swig',
type: 'create',
renderable: true,
use_date_for_updated: true
renderable: true
});

hexo.config.use_date_for_updated = true;

return fs.writeFile(file.source, '').then(() => Promise.all([
fs.stat(file.source),
process(file)
Expand All @@ -301,6 +302,8 @@ describe('asset', () => {
page.remove(),
fs.unlink(file.source)
]);
}).finally(() => {
hexo.config.use_date_for_updated = undefined;
});
});

Expand Down

0 comments on commit 677f5b8

Please sign in to comment.