hunk.code_window:       });
     });
     it('my-comp --inline-template', function () {
       return ng(['generate', 'component', 'my-comp', '--inline-template']).then(() => {
         var testPath = path.join(root, 'tmp', 'foo', 'src', 'app', 'my-comp', 'my-comp.component.html');
         expect(existsSync(testPath)).to.equal(false);
       });
  
hunk.labels: keep keep add keep keep keep keep keep
hunk.after_edit:   it(`non${path.sep}existing${path.sep}dir${path.sep}myComp will create dir and succeed`, () => {
       const testPath =
         path.join(root, 'tmp', 'foo', 'src', 'app', 'non', 'existing', 'dir', 'my-comp', 'my-comp.component.ts');
       const appModule = path.join(root, 'tmp', 'foo', 'src', 'app', 'app.module.ts');
       return ng(['generate', 'component', `non${path.sep}existing${path.sep}dir${path.sep}myComp`])
         .then(() => expect(existsSync(testPath)).to.equal(true))
         .then(() => readFile(appModule, 'utf-8'))
         .then(content => {
           // Expect that the app.module contains a reference to my-comp and its import.
           expect(content)
             .matches(/import.*MyCompComponent.*from '.\/non\/existing\/dir\/my-comp\/my-comp.component';/);
         });
     });
  
hunk.file_path: tests/acceptance/generate-component.spec.js
hunk.type: add
file: import {join} from 'path';
  import {ng} from '../../../utils/process';
  import {expectFileToExist, createDir} from '../../../utils/fs';
  
  
  export default function() {
    const rootDir = join('src', 'app', 'Upper-Dir');
    createDir(rootDir);
    const componentDir = join(rootDir, 'test-component');
    const componentTwoDir = join(rootDir, 'test-component-two');
  
    return ng('generate', 'component', 'Upper-Dir/test-component')
      .then(() => expectFileToExist(componentDir))
      .then(() => expectFileToExist(join(componentDir, 'test-component.component.ts')))
      .then(() => expectFileToExist(join(componentDir, 'test-component.component.spec.ts')))
      .then(() => expectFileToExist(join(componentDir, 'test-component.component.html')))
      .then(() => expectFileToExist(join(componentDir, 'test-component.component.css')))
      .then(() => ng('generate', 'component', 'Upper-Dir/Test-Component-Two'))
      .then(() => expectFileToExist(join(componentTwoDir, 'test-component-two.component.ts')))
      .then(() => expectFileToExist(join(componentTwoDir, 'test-component-two.component.spec.ts')))
      .then(() => expectFileToExist(join(componentTwoDir, 'test-component-two.component.html')))
      .then(() => expectFileToExist(join(componentTwoDir, 'test-component-two.component.css')))
  
      // Try to run the unit tests.
      .then(() => ng('test', '--watch=false'));
  }
  