hunk.code_window:     .then(() => request('http://localhost:4200'))
       .then(body => {
         if (!body.match(/<app-root><\/app-root>/)) {
           throw new Error('Response does not match expected value.');
         }
       })
       .then(() => request('http://localhost:4200/deployurl/'))
       .then(body => {
         if (!body.match(/<app-root><\/app-root>/)) {
  
hunk.labels: keep keep keep replace keep keep keep keep keep
hunk.after_edit:         throw new Error('Response does not match expected value. (1)');
         }
         if (!body.match(/"\/deployurl\/scripts.bundle.js"/)) {
           throw new Error('Response does not match expected value. (2)');
  
hunk.file_path: tests/e2e/tests/misc/deploy-url.ts
hunk.type: replace
file: import * as fs from 'fs-extra';
  import {join} from 'path';
  import {ng} from '../../../utils/process';
  import {expectFileToMatch} from '../../../utils/fs';
  
  
  export default function() {
    const root = process.cwd();
    const modulePath = join(root, 'src', 'app', 'app.module.ts');
  
    fs.mkdirSync('./src/app/sub-dir');
  
    return ng('generate', 'pipe', 'test-pipe', '--module', 'app.module.ts')
      .then(() => expectFileToMatch(modulePath,
        /import { TestPipePipe } from '.\/test-pipe.pipe'/))
  
      .then(() => process.chdir(join(root, 'src', 'app')))
      .then(() => ng('generate', 'pipe', 'test-pipe2', '--module', 'app.module.ts'))
      .then(() => expectFileToMatch(modulePath,
        /import { TestPipe2Pipe } from '.\/test-pipe2.pipe'/))
  
      // Try to run the unit tests.
      .then(() => ng('build'));
  }
  