@@ -143,7 +143,7 @@ describe('Guard Schematic', () => {
143143 const options = { ...defaultOptions , implements : implementationOptions , functional : false } ;
144144 const tree = await schematicRunner . runSchematic ( 'guard' , options , appTree ) ;
145145 const fileString = tree . readContent ( '/projects/bar/src/app/foo.guard.ts' ) ;
146- const expectedImports = `import { CanMatch, Route, UrlSegment, UrlTree } from '@angular/router';` ;
146+ const expectedImports = `import { CanMatch, Route, MaybeAsync, GuardResult, UrlSegment } from '@angular/router';` ;
147147
148148 expect ( fileString ) . toContain ( expectedImports ) ;
149149 } ) ;
@@ -153,7 +153,7 @@ describe('Guard Schematic', () => {
153153 const options = { ...defaultOptions , implements : implementationOptions , functional : false } ;
154154 const tree = await schematicRunner . runSchematic ( 'guard' , options , appTree ) ;
155155 const fileString = tree . readContent ( '/projects/bar/src/app/foo.guard.ts' ) ;
156- const expectedImports = `import { ActivatedRouteSnapshot, CanActivate, RouterStateSnapshot, UrlTree } from '@angular/router';` ;
156+ const expectedImports = `import { ActivatedRouteSnapshot, CanActivate, MaybeAsync, GuardResult, RouterStateSnapshot } from '@angular/router';` ;
157157
158158 expect ( fileString ) . toContain ( expectedImports ) ;
159159 } ) ;
@@ -174,7 +174,7 @@ describe('Guard Schematic', () => {
174174 const fileString = tree . readContent ( '/projects/bar/src/app/foo.guard.ts' ) ;
175175 const expectedImports =
176176 `import ` +
177- `{ ActivatedRouteSnapshot, CanActivate, CanActivateChild, CanMatch, Route, RouterStateSnapshot, UrlSegment, UrlTree } ` +
177+ `{ ActivatedRouteSnapshot, CanActivate, CanActivateChild, CanMatch, GuardResult, MaybeAsync, Route, RouterStateSnapshot } ` +
178178 `from '@angular/router';` ;
179179
180180 expect ( fileString ) . toContain ( expectedImports ) ;
0 commit comments