hunk.code_window:       });
         const { result } = await harness.executeOnce();
         expect(result?.success).toBe(true);
         harness.expectFile('dist/index.html').content.not.toContain(`<style`);
       });
       it(`should not extract critical css when 'optimization' is false`, async () => {
         harness.useTarget('build', {
  
hunk.labels: keep keep keep keep keep replace keep keep keep keep
hunk.after_edit:       harness
           .expectFile('dist/index.html')
           .content.toContain(
             `<link rel="stylesheet" href="styles.css" media="print" onload="this.media='all'">`,
           );
         harness.expectFile('dist/index.html').content.toContain(`body{color:#000;}`);
  
hunk.file_path: packages/angular_devkit/build_angular/src/builders/browser/tests/options/inline-critical_spec.ts
hunk.type: replace
file: import { IncomingMessage } from 'http';
  import _request from 'request';
  
  export function request(url: string): Promise<string> {
    return new Promise((resolve, reject) => {
      let options = {
        url: url,
        headers: { 'Accept': 'text/html' },
        agentOptions: { rejectUnauthorized: false },
      };
      _request(options, (error: any, response: IncomingMessage, body: string) => {
        if (error) {
          reject(error);
        } else if (response.statusCode >= 400) {
          reject(new Error(`Requesting "${url}" returned status code ${response.statusCode}.`));
        } else {
          resolve(body);
        }
      });
    });
  }
  