anchor.diff:    File target = new File(sandbox.path + Platform.pathSeparator + "target");
     target.createSync();
   
  -  final eventCompleter = new Completer<FileSystemEvent>();
  +  var eventCompleter = new Completer<FileSystemEvent>();
     var subscription;
  +  // Check for link pointing to file
     subscription = dir.watch().listen((FileSystemEvent event) {
       if (event.path.endsWith('link')) {
         eventCompleter.complete(event);
  
positive.code:   });
    Link link = new Link(dir.path + Platform.pathSeparator + "link");
    link.createSync(target.path);
    final event = await eventCompleter.future;
    // Link should not be marked as Dir.
    Expect.isFalse(event.isDirectory);
  
    sandbox.deleteSync(recursive: true);
  
negative.code: }
  
  testIsDir() async {
    // Only run on Platforms that supports file watcher
    if (!Platform.isWindows && !Platform.isLinux && !Platform.isMacOS) return;
    Directory sandbox = Directory.systemTemp.createTempSync();
    Directory dir = new Directory(sandbox.path + Platform.pathSeparator + "dir");
  