We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
CanDeactivate
1 parent 3d5f41f commit 28a51ccCopy full SHA for 28a51cc
packages/schematics/angular/guard/type-files/__name@dasherize__.guard.spec.ts.template
@@ -4,7 +4,7 @@ import { <%= guardType %> } from '@angular/router';
4
import { <%= camelize(name) %>Guard } from './<%= dasherize(name) %>.guard';
5
6
describe('<%= camelize(name) %>Guard', () => {
7
- const executeGuard: <%= guardType %> = (...guardParameters) =>
+ const executeGuard: <%= guardType %><% if (guardType === 'CanDeactivateFn') { %><unknown><% } %> = (...guardParameters) =>
8
TestBed.runInInjectionContext(() => <%= camelize(name) %>Guard(...guardParameters));
9
10
beforeEach(() => {
0 commit comments