@@ -6,7 +6,7 @@ import { ComponentFixture, TestBed } from '@angular/core/testing';
66
77import { WorkspaceItemsDeletePageComponent } from './workspaceitems-delete-page.component' ;
88import { ActivatedRoute , Router } from '@angular/router' ;
9- import { NgbModal } from '@ng-bootstrap/ng-bootstrap' ;
9+ import { NgbModalModule } from '@ng-bootstrap/ng-bootstrap' ;
1010import { TranslateModule , TranslateService } from '@ngx-translate/core' ;
1111import { NotificationsServiceStub } from '../../shared/testing/notifications-service.stub' ;
1212import { EventEmitter , NO_ERRORS_SCHEMA } from '@angular/core' ;
@@ -46,7 +46,10 @@ describe('WorkspaceitemsDeletePageComponent', () => {
4646
4747 beforeEach ( async ( ) => {
4848 await TestBed . configureTestingModule ( {
49- imports : [ TranslateModule . forRoot ( ) ] ,
49+ imports : [
50+ NgbModalModule ,
51+ TranslateModule . forRoot ( )
52+ ] ,
5053 declarations : [ WorkspaceItemsDeletePageComponent ] ,
5154 providers : [
5255 {
@@ -65,7 +68,6 @@ describe('WorkspaceitemsDeletePageComponent', () => {
6568 useValue : workspaceitemDataServiceSpy ,
6669 } ,
6770 { provide : Location , useValue : new LocationStub ( ) } ,
68- { provide : NgbModal , useValue : modalService } ,
6971 {
7072 provide : NotificationsService ,
7173 useValue : new NotificationsServiceStub ( ) ,
0 commit comments