Skip to content

Commit

Permalink
Add test for symlinks to test ENOENT errors. Fixes GH-60. Fixes GH-45.
Browse files Browse the repository at this point in the history
  • Loading branch information
zeripath authored and shama committed Apr 9, 2014
1 parent 1bf3b31 commit dfe5fea
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/watch_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,15 @@ exports.watch = {
cleanUp(done);
},
tearDown: cleanUp,
testnotexists: function(test) {
test.expect(0);
fs.mkdirSync(path.resolve(__dirname, 'fixtures', 'new_dir'));
fs.symlinkSync(path.resolve(__dirname, 'fixtures', 'not-exists.js'), path.resolve(__dirname, 'fixtures', 'new_dir', 'not-exists-symlink.js'));
gaze('**/*', function() {
this.close();
test.done();
});
},
remove: function(test) {
test.expect(2);
gaze('**/*', function() {
Expand Down

0 comments on commit dfe5fea

Please sign in to comment.