test for symlinks outside a watched parent dir

This test only matters for fsevents mode, so let me know if you want me to disable it for other modes to save time. Love to hear any other feedback you have as well.
arg! sorry..

On 19 December 2014 at 10:17, Elan Shanker <notifications@github.com> wrote:

> In test.js
> <https://github.com/paulmillr/chokidar/pull/199#discussion-diff-22119412>:
>
> > +      var linkedPath = getFixturePath('outty_dir');
> > +      var linkedFilePath = sysPath.join(linkedPath, 'text.txt');
> > +      fs.mkdirSync(linkedPath, 0x1ed);
> > +      fs.writeFileSync(linkedFilePath, 'c');
> > +      var linkPath = getFixturePath('subdir/subsub');
> > +      fs.symlinkSync(linkedPath, linkPath);
> > +      delay(function () {
> > +        var previousWatcher = chokidar.watch(getFixturePath('subdir'), options);
> > +        var watchedPath = getFixturePath('subdir/subsub/text.txt');
> > +        var watcher = chokidar.watch(watchedPath, options);
> > +        watcher.on('all', spy);
> > +        delay(function () {
> > +          fs.writeFileSync(linkedFilePath, 'd');
> > +          delay(function () {
> > +            watcher.close();
> > +            previousWatcher.close
>
> Forgot to actually invoke the method here.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/paulmillr/chokidar/pull/199/files#r22119412>.
>



-- 
*Sterling Camden*
Software Engineer
502 Emerson Street | Palo Alto, CA 94301
303.520.2968 | sterling@relateiq.com