hunk.code_window:     expect(fileString).not.toContain('canActivateChild');
       expect(fileString).not.toContain('CanLoad');
       expect(fileString).not.toContain('canLoad');
     });
     it('should respect the guardType value', 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.ts');
       expect(fileString).toContain('export const fooGuard: CanActivateFn = (route, state) => {');
       expect(fileString).not.toContain('CanActivateChild');
  
hunk.labels: keep keep keep keep keep replace replace keep keep keep keep
hunk.after_edit:   it('should respect the functional guard value', async () => {
       const options = { ...defaultOptions, implements: ['CanActivate'], functional: true };
  
hunk.file_path: packages/schematics/angular/guard/index_spec.ts
hunk.type: replace
file: import { expectFileToMatch } from '../../../utils/fs';
  import { ng } from '../../../utils/process';
  import { libraryConsumptionSetup } from './setup';
  
  export default async function () {
    await libraryConsumptionSetup();
  
    // Build library in full mode (development)
    await ng('build', 'my-lib', '--configuration=development');
  
    // Validate that sourcemaps for the library exists.
    await ng('build', '--configuration=development');
    await expectFileToMatch('dist/test-project/main.js.map', 'projects/my-lib/src/public-api.ts');
  }
  