hunk.code_window:     );
     });
     it('should generate CanDeactivateFn with unknown guardType', async () => {
       const options = { ...defaultOptions, guardType: 'canDeactivate' };
       const tree = await schematicRunner.runSchematicAsync('guard', options, appTree).toPromise();
       const fileString = tree.readContent('/projects/bar/src/app/foo.guard.ts');
       expect(fileString).toContain(
         'export const fooGuard: CanDeactivateFn<unknown> = ' +
  
hunk.labels: keep keep keep replace replace keep keep keep keep
hunk.after_edit:   it('should generate CanDeactivateFn with unknown functional guard', async () => {
       const options = { ...defaultOptions, implements: ['CanDeactivate'], functional: true };
  
hunk.file_path: packages/schematics/angular/guard/index_spec.ts
hunk.type: replace
file: /**
   * @license
   * Copyright Google LLC 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 { Observable } from 'rxjs';
  import { LogEntry, Logger } from './logger';
  
  export class TransformLogger extends Logger {
    constructor(
      name: string,
      transform: (stream: Observable<LogEntry>) => Observable<LogEntry>,
      parent: Logger | null = null,
    ) {
      super(name, parent);
      this._observable = transform(this._observable);
    }
  }
  