hunk.code_window:             actions.push(
                 brotliCompressAsync(scriptAsset.source.source())
                   .then((result) => {
                     compilation.updateAsset(assetName, (s) => s, {
                       estimatedTransferSize: result.length,
                     });
                   })
                   .catch((error) => {
                     compilation.warnings.push(
  
hunk.labels: keep keep keep keep replace replace replace keep keep keep
hunk.after_edit:                   compilation.updateAsset(
                       assetName,
                       (s) => s,
                       (assetInfo) => ({
                         ...assetInfo,
                         estimatedTransferSize: result.length,
                       }),
                     );
  
hunk.file_path: packages/angular_devkit/build_angular/src/webpack/plugins/transfer-size-plugin.ts
hunk.type: replace
file: import {join} from 'path';
  import {ng} from '../../../utils/process';
  import {expectFileToExist} from '../../../utils/fs';
  import {updateJsonFile} from '../../../utils/project';
  import { expectToFail } from '../../../utils/utils';
  
  
  // tslint:disable:max-line-length
  export default function() {
    const componentDir = join('src', 'app', 'test-component');
    return Promise.resolve()
      .then(() => updateJsonFile('angular.json', configJson => {
        configJson.projects['test-project'].schematics = {
          '@schematics/angular:component': { inlineTemplate: true }
        };
      }))
      .then(() => ng('generate', 'component', 'test-component'))
      .then(() => expectFileToExist(componentDir))
      .then(() => expectFileToExist(join(componentDir, 'test-component.component.ts')))
      .then(() => expectFileToExist(join(componentDir, 'test-component.component.spec.ts')))
      .then(() => expectToFail(() => expectFileToExist(join(componentDir, 'test-component.component.html'))))
      .then(() => expectFileToExist(join(componentDir, 'test-component.component.css')))
  
      // Try to run the unit tests.
      .then(() => ng('test', '--watch=false'));
  }
  