hunk.code_window:   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>/)) {
  
hunk.labels: keep keep keep keep add keep keep keep keep keep
hunk.after_edit:     .then(() => writeMultipleFiles({
         'src/string-script.js': 'console.log(\'string-script\'); var number = 1+1;',
       })
       .then(() => updateJsonFile('.angular-cli.json', configJson => {
         configJson['apps'][0]['scripts'] = [
           'string-script.js',
         ];
       }))
  
hunk.file_path: tests/e2e/tests/misc/deploy-url.ts
hunk.type: add
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; });
  }
  