hunk.code_window:         import { TestBed, async } from '@angular/core/testing';
           import { HttpModule } from '@angular/http';
           import { AppComponent } from './app.component';
           describe('AppComponent', () => {
             beforeEach(() => {
               TestBed.configureTestingModule({
                 imports: [
                   HttpModule
  
hunk.labels: keep keep keep keep keep replace keep keep keep
hunk.after_edit:           beforeEach(async(() => {
  
hunk.file_path: tests/e2e/tests/build/assets.ts
hunk.type: replace
file: import {
    killAllProcesses,
    exec,
    waitForAnyProcessOutputToMatch,
    silentExecAndWaitForOutputToMatch
  } from '../../utils/process';
  import { expectToFail } from '../../utils/utils';
  
  
  const webpackGoodRegEx = /webpack: bundle is now VALID|webpack: Compiled successfully./;
  
  export default function () {
    if (process.platform.startsWith('win')) {
      return Promise.resolve();
    }
  
    return silentExecAndWaitForOutputToMatch('ng', ['serve'], webpackGoodRegEx)
      // Should trigger a rebuild.
      .then(() => exec('touch', 'src/main.ts'))
      .then(() => waitForAnyProcessOutputToMatch(webpackGoodRegEx, 5000))
      .then(() => killAllProcesses(), (err: any) => {
        killAllProcesses();
        throw err;
      })
      .then(() => silentExecAndWaitForOutputToMatch('ng', ['serve', '--no-watch'], webpackGoodRegEx))
      // Should not trigger a rebuild when not watching files.
      .then(() => exec('touch', 'src/main.ts'))
      .then(() => expectToFail(() => waitForAnyProcessOutputToMatch(webpackGoodRegEx, 5000)))
      .then(() => killAllProcesses(), (err: any) => {
        killAllProcesses();
        throw err;
      })
  }
  