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 { killAllProcesses } from '../../utils/process';
  import { request } from '../../utils/http';
  import { ngServe } from '../../utils/project';
  import { getGlobalVariable } from '../../utils/env';
  
  export default function () {
    // Skip this in Appveyor tests.
    if (getGlobalVariable('argv').appveyor) {
      return Promise.resolve();
    }
  
    return Promise.resolve()
      // check when setup through command line arguments
      .then(() => ngServe('--deploy-url', '/deployurl/', '--base-href', '/deployurl/'))
      .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>/)) {
          throw new Error('Response does not match expected value.');
        }
      })
      .then(() => killAllProcesses(), (err) => { killAllProcesses(); throw err; });
  }
  