Skip to content

Commit

Permalink
test: watcher shouldn't crash if ignoreRoot is []
Browse files Browse the repository at this point in the history
  • Loading branch information
novemberborn authored and remy committed Feb 25, 2016
1 parent b95469a commit 3d19aee
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions test/monitor/match.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -342,10 +342,23 @@ describe('match rule parser', function () {


describe('watcher', function () {
// afterEach(function () {
// config.reset();
// watch.resetWatchers();
// });
afterEach(function () {
config.reset();
watch.resetWatchers();
});

it('should not crash if ignoreRoot is an empty array', function (done) {
config.load({
watch: ['test/fixtures/app.js'],
ignoreRoot: []
}, function (config) {
return watch.watch()
.then(function () {
done();
})
.catch(done)
})
});

it('should match a dotfile if explicitly asked to', function (done) {
config.load({
Expand Down

0 comments on commit 3d19aee

Please sign in to comment.