hunk.code_window:       options.spec :
         this.project.ngConfigObj.get('defaults.spec.component');
       return {
         dynamicPath: this.dynamicPath.dir.replace(this.dynamicPath.appRoot, ''),
         flat: options.flat,
         spec: options.spec,
  
hunk.labels: keep keep add keep keep keep keep
hunk.after_edit:     options.viewEncapsulation = options.viewEncapsulation !== undefined ?
         options.viewEncapsulation :
         this.project.ngConfigObj.get('defaults.viewEncapsulation');
       options.changeDetection = options.changeDetection !== undefined ?
         options.changeDetection :
         this.project.ngConfigObj.get('defaults.changeDetection');
  
hunk.file_path: packages/angular-cli/blueprints/component/index.js
hunk.type: add
file: import {isMobileTest, expectToFail} from '../../utils/utils';
  import {expectFileToMatch, expectFileToExist} from '../../utils/fs';
  
  
  export default function() {
    if (!isMobileTest()) {
      return;
    }
  
    return Promise.resolve()
      // Service Worker
      .then(() => expectToFail(() => expectFileToMatch('dist/index.html',
                                                       'if (\'serviceWorker\' in navigator) {')))
      .then(() => expectToFail(() => expectFileToExist('dist/worker.js')))
  
      // Asynchronous bundle
      .then(() => expectToFail(() => expectFileToMatch('dist/index.html',
                                                     '<script src="/app-concat.js" async></script>')))
      .then(() => expectToFail(() => expectFileToExist('dist/app-concat.js')));
  }
  