Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Passing a directory path implicitly watches directory contents, undoes accidental breaking change and fixes #229 #233

Merged
merged 4 commits into from
Jun 18, 2016

Conversation

UltCombo
Copy link
Collaborator

Also refactor event filtering and add logging for unexpected watched files.

…s accidental breaking change and fixes floatdrop#229

Also refactor event filtering and add logging for unexpected watched files.
@@ -21,7 +21,14 @@ describe('cwd', function () {

it('should respect opts.cwd', function (done) {
w = watch('index.js', {cwd: fixtures('')}, function (file) {
file.relative.should.eql(path.normalize('test/fixtures/index.js'));
file.relative.should.eql(path.normalize('index.js'));
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@UltCombo UltCombo merged commit e0a5cf0 into floatdrop:master Jun 18, 2016
@UltCombo UltCombo deleted the dir-depth branch June 18, 2016 23:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant