hunk.code_window:     expect(cfg.projects['@myscope/mylib']).toBeDefined();
       const rootTsCfg = JSON.parse(tree.readContent('/tsconfig.json'));
       expect(rootTsCfg.compilerOptions.paths['@myscope/mylib']).toEqual(['dist/myscope/mylib']);
     });
     it(`should dasherize scoped libraries`, () => {
  
hunk.labels: keep keep keep add keep keep keep
hunk.after_edit:     const karmaConf = getFileContent(tree, '/projects/myscope/mylib/karma.conf.js');
       expect(karmaConf).toContain(`dir: require('path').join(__dirname, '../../../coverage/myscope/mylib')`);
  
hunk.file_path: packages/schematics/angular/library/index_spec.ts
hunk.type: add
file: /**
   * @license
   * Copyright Google Inc. All Rights Reserved.
   *
   * Use of this source code is governed by an MIT-style license that can be
   * found in the LICENSE file at https://angular.io/license
   */
  import * as http from 'http';
  import * as https from 'https';
  import * as Url from 'url';
  
  /**
   * @deprecated
   */
  export function request(url: string, headers = {}): Promise<string> {
    return new Promise((resolve, reject) => {
      const u = Url.parse(url);
      const options: http.RequestOptions = {
        hostname: u.hostname,
        protocol: u.protocol,
        host: u.host,
        port: u.port,
        path: u.path,
        headers: { 'Accept': 'text/html', ...headers },
      };
  
      function _callback(res: http.IncomingMessage) {
        if (!res.statusCode || res.statusCode >= 400) {
          // Consume the rest of the data to free memory.
          res.resume();
          reject(new Error(`Requesting "${url}" returned status code ${res.statusCode}.`));
        } else {
          res.setEncoding('utf8');
          let data = '';
          res.on('data', chunk => {
            data += chunk;
          });
          res.on('end', () => {
            try {
              resolve(data);
            } catch (err) {
              reject(err);
            }
          });
        }
      }
  
      if (u.protocol == 'https:') {
        options.agent = new https.Agent({ rejectUnauthorized: false });
        https.get(options, _callback);
      } else if (u.protocol == 'http:') {
        http.get(options, _callback);
      } else {
        throw new Error(`Unknown protocol: ${JSON.stringify(u.protocol)}.`);
      }
    });
  }
  