@@ -2,14 +2,12 @@ import { A11yModule } from '@angular/cdk/a11y';
22import { ESCAPE } from '@angular/cdk/keycodes' ;
33import { Renderer2 } from '@angular/core' ;
44import { ComponentFixture , TestBed , waitForAsync } from '@angular/core/testing' ;
5- import { PopoverService } from '../popover-service/popover.service' ;
65import { PopoverModule } from '../popover.module' ;
76import { PopoverBodyComponent } from './popover-body.component' ;
87
98describe ( 'PopoverBodyComponent' , ( ) => {
109 let component : PopoverBodyComponent ;
1110 let fixture : ComponentFixture < PopoverBodyComponent > ;
12- let popoverService : PopoverService ;
1311
1412 const mockRenderer2 = {
1513 listen : jest . fn ( ) ,
@@ -20,14 +18,13 @@ describe('PopoverBodyComponent', () => {
2018 beforeEach ( waitForAsync ( ( ) => {
2119 TestBed . configureTestingModule ( {
2220 imports : [ PopoverModule , A11yModule ] ,
23- providers : [ { provide : Renderer2 , useValue : mockRenderer2 } , PopoverService ]
21+ providers : [ { provide : Renderer2 , useValue : mockRenderer2 } ]
2422 } ) . compileComponents ( ) ;
2523 } ) ) ;
2624
2725 beforeEach ( ( ) => {
2826 fixture = TestBed . createComponent ( PopoverBodyComponent ) ;
2927 component = fixture . componentInstance ;
30- popoverService = TestBed . inject ( PopoverService ) ;
3128
3229 fixture . detectChanges ( ) ;
3330 } ) ;
0 commit comments