it('when there are no dependent files', () => {
   let sourceFile = path.join(rootPath, 'foo-baz/no-module.component.ts');
   return dependentFilesUtils.getDependentFiles(sourceFile, rootPath)
     .then((contents: dependentFilesUtils.ModuleMap) => {
       assert.deepEqual(contents, {});
     });
 });
 it('when the given component unit has no index file', () => {
   let sourceFile = path.join(rootPath, 'bar/bar.component.ts');
   return dependentFilesUtils.getDependentFiles(sourceFile, rootPath)
     .then((contents: dependentFilesUtils.ModuleMap) => {
       let bazFile = path.join(rootPath, 'bar/baz/baz.component.ts');
       let fooFile = path.join(rootPath, 'foo/foo.component.ts');
       let noModuleSpecFile = path.join(rootPath, 'foo-baz/no-module.component.spec.ts');
       let expectedContents: dependentFilesUtils.ModuleMap = {};
       expectedContents[bazFile] = [{
           specifierText: '../bar.component',
           pos: 13,
           end: 32
       }];
       expectedContents[fooFile] = [{
         specifierText: '../bar/bar.component',
         pos: 85,
         end: 108
       }];
       expectedContents[noModuleSpecFile] = [{
         specifierText: '../bar/bar.component',
         pos: 13,
         end: 36
       }];
       assert.deepEqual(contents, expectedContents);
     });
 });
 it('when the given component unit has no index file [More Test]', () => {
   let sourceFile = path.join(rootPath, 'bar/baz/baz.component.ts');
   return dependentFilesUtils.getDependentFiles(sourceFile, rootPath)
     .then((contents: dependentFilesUtils.ModuleMap) => {
       let expectedContents: dependentFilesUtils.ModuleMap = {};
       let barFile = path.join(rootPath, 'bar/bar.component.ts');
       let fooFile = path.join(rootPath, 'foo/foo.component.ts');
       expectedContents[barFile] = [{
         specifierText: './baz/baz.component',
         pos: 13,
         end: 35
       }];
       expectedContents[fooFile] = [{
         specifierText: '../bar/baz/baz.component',
         pos: 13,
         end: 40
       }];
       assert.deepEqual(contents, expectedContents);
     });
 });