11import { ComponentFixture , TestBed , waitForAsync } from '@angular/core/testing' ;
2- import { Component , ViewChild , PLATFORM_ID } from '@angular/core' ;
2+ import { Component , ViewChild } from '@angular/core' ;
33import { By } from '@angular/platform-browser' ;
44import { wait } from '../test-utils/ui-interactions.spec' ;
55import { IgxNavigationDrawerComponent } from './navigation-drawer.component' ;
@@ -192,7 +192,8 @@ describe('Navigation Drawer', () => {
192192 </igx-nav-drawer>` ;
193193 TestBed . overrideComponent ( TestComponentDIComponent , {
194194 set : {
195- template
195+ template,
196+ imports : [ IgxNavigationDrawerComponent , IgxNavDrawerTemplateDirective , IgxNavDrawerMiniTemplateDirective ]
196197 }
197198 } ) ;
198199
@@ -219,7 +220,8 @@ describe('Navigation Drawer', () => {
219220 </igx-nav-drawer>` ;
220221 TestBed . overrideComponent ( TestComponentMiniComponent , {
221222 set : {
222- template
223+ template,
224+ imports : [ IgxNavigationDrawerComponent , IgxNavDrawerTemplateDirective , IgxNavDrawerMiniTemplateDirective ]
223225 }
224226 } ) ;
225227 let fixture ;
@@ -251,7 +253,8 @@ describe('Navigation Drawer', () => {
251253 </igx-nav-drawer>` ;
252254 TestBed . overrideComponent ( TestComponentPinComponent , {
253255 set : {
254- template
256+ template,
257+ imports : [ IgxNavigationDrawerComponent , IgxNavDrawerTemplateDirective , IgxNavDrawerMiniTemplateDirective ]
255258 }
256259 } ) ;
257260
@@ -444,7 +447,8 @@ describe('Navigation Drawer', () => {
444447 let fixture : ComponentFixture < TestComponentDIComponent > ;
445448 TestBed . overrideComponent ( TestComponentDIComponent , {
446449 set : {
447- template
450+ template,
451+ imports : [ IgxNavigationDrawerComponent , IgxNavDrawerTemplateDirective , IgxNavDrawerMiniTemplateDirective ]
448452 }
449453 } ) ;
450454
@@ -473,7 +477,8 @@ describe('Navigation Drawer', () => {
473477 </igx-nav-drawer>` ;
474478 TestBed . overrideComponent ( TestComponentDIComponent , {
475479 set : {
476- template
480+ template,
481+ imports : [ IgxNavigationDrawerComponent , IgxNavDrawerTemplateDirective , IgxNavDrawerMiniTemplateDirective ]
477482 }
478483 } ) ;
479484
0 commit comments