From ba4d519ce5b116d299a4f4f4a63ec69e35fdfa72 Mon Sep 17 00:00:00 2001 From: ced Date: Mon, 28 Nov 2022 14:33:23 +0100 Subject: [PATCH] fix(@schematics/angular): remove EnvironmentInjector import in functional guard spec It is unnecessary now that the spec uses `runInInjectionContext` The resolver spec does not have this issue as the import was missing in the spec in the first place. --- .../guard/type-files/__name@dasherize__.guard.spec.ts.template | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/schematics/angular/guard/type-files/__name@dasherize__.guard.spec.ts.template b/packages/schematics/angular/guard/type-files/__name@dasherize__.guard.spec.ts.template index b0fec06cf415..b94ec6a60f30 100644 --- a/packages/schematics/angular/guard/type-files/__name@dasherize__.guard.spec.ts.template +++ b/packages/schematics/angular/guard/type-files/__name@dasherize__.guard.spec.ts.template @@ -1,4 +1,3 @@ -import { EnvironmentInjector } from '@angular/core'; import { TestBed } from '@angular/core/testing'; import { <%= guardType %> } from '@angular/router';