hunk.code_window:     .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')))
  
hunk.labels: keep keep keep keep replace keep keep keep keep
hunk.after_edit:     .then(() => ng('generate', 'component', `${upperDirs}/Test-Component-Two`))
  
hunk.file_path: tests/e2e/tests/generate/component/component-path-case.ts
hunk.type: replace
file: import {ng} from '../../utils/process';
  import {expectFileToMatch} from '../../utils/fs';
  import {expectGitToBeClean} from '../../utils/git';
  import {expectToFail} from '../../utils/utils';
  
  
  export default function() {
    // Try a prod build.
    return ng('build', '--env=prod')
      .then(() => expectFileToMatch('dist/main.bundle.js', 'production: true'))
      .then(() => expectGitToBeClean())
  
      // Build fails on invalid build target
      .then(() => expectToFail(() => ng('build', '--target=potato')))
  
      // This is a valid target.
      .then(() => ng('build', '--target=production'));
  }
  