hunk.code_window:     expect(fileString).not.toContain('CanLoad');
       expect(fileString).not.toContain('canLoad');
     });
     it('should generate a helper function to execute the guard in a test', async () => {
       const options = { ...defaultOptions, guardType: 'canActivate' };
       const tree = await schematicRunner.runSchematicAsync('guard', options, appTree).toPromise();
       const fileString = tree.readContent('/projects/bar/src/app/foo.guard.spec.ts');
       expect(fileString).toContain('const executeGuard: CanActivateFn = (...guardParameters) => ');
  
hunk.labels: keep keep keep keep keep replace keep keep keep
hunk.after_edit:     const options = { ...defaultOptions, implements: ['CanActivate'], functional: true };
  
hunk.file_path: packages/schematics/angular/guard/index_spec.ts
hunk.type: replace
file: import { join } from 'path';
  import { ng } from '../../../utils/process';
  import { expectFileToMatch } from '../../../utils/fs';
  
  export default function () {
    const modulePath = join('src', 'app', 'foo', 'foo.module.ts');
  
    return Promise.resolve()
      .then(() => ng('generate', 'module', 'foo'))
      .then(() => ng('generate', 'directive', 'foo', '--no-flat'))
      .then(() => expectFileToMatch(modulePath, /import { FooDirective } from '.\/foo.directive'/));
  }
  