Skip to content

Commit

Permalink
Merge pull request #3699 from hexojs/dependabot/npm_and_yarn/hexo-fs-…
Browse files Browse the repository at this point in the history
…tw-2.0.0

chore(deps): update hexo-fs requirement from ^1.0.0 to ^2.0.0
  • Loading branch information
curbengh authored Sep 3, 2019
2 parents 7ee8a50 + 438f455 commit b784e9f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"cheerio": "0.22.0",
"hexo-cli": "^2.0.0",
"hexo-front-matter": "^0.2.3",
"hexo-fs": "^1.0.0",
"hexo-fs": "^2.0.0",
"hexo-i18n": "^1.0.0",
"hexo-log": "^0.2.0",
"hexo-util": "^1.0.1",
Expand Down
28 changes: 14 additions & 14 deletions test/scripts/box/box.js
Original file line number Diff line number Diff line change
Expand Up @@ -268,20 +268,20 @@ describe('Box', () => {

box.addProcessor(processor);

return box.watch().then(() => {
box.isWatching().should.be.true;
return fs.writeFile(src, 'a');
}).delay(500).then(() => {
const file = processor.args[0][0];

file.source.should.eql(src);
file.path.should.eql(path);
file.type.should.eql('create');
file.params.should.eql({});
}).finally(() => {
box.unwatch();
return fs.rmdir(box.base);
});
return Promise.all([fs.writeFile(src, 'a')])
.then(() => box.watch())
.then(() => box.isWatching().should.be.true)
.delay(500).then(() => {
const file = processor.args[0][0];

file.source.should.eql(src);
file.path.should.eql(path);
file.type.should.eql('create');
file.params.should.eql({});
}).finally(() => {
box.unwatch();
return fs.rmdir(box.base);
});
});

it('watch() - update', () => {
Expand Down

0 comments on commit b784e9f

Please sign in to comment.