Uplift to Angular 9
[portal/nonrtric-controlpanel.git] / webapp-frontend / src / app / policy-control / policy-type.datasource.spec.ts
index 5b83368..ac19f82 100644 (file)
@@ -20,7 +20,6 @@
 
 import { TestBed } from '@angular/core/testing';
 import { BehaviorSubject, of } from 'rxjs';
-import { NotificationService } from '../services/ui/notification.service';
 import { ToastrModule } from 'ngx-toastr';
 import { PolicyTypeDataSource } from './policy-type.datasource';
 import { PolicyService } from '../services/policy/policy.service';
@@ -48,8 +47,7 @@ describe('PolicyTypeDataSource', () => {
     TestBed.configureTestingModule({
       imports: [ToastrModule.forRoot()],
       providers: [
-        { provide: PolicyService, useValue: policyServiceSpy },
-        NotificationService
+        { provide: PolicyService, useValue: policyServiceSpy }
       ]
     });
   });
@@ -72,7 +70,7 @@ describe('PolicyTypeDataSource', () => {
     });
 
     it('should create', () => {
-      policyTypeDataSource = TestBed.get(PolicyTypeDataSource);
+      policyTypeDataSource = TestBed.inject(PolicyTypeDataSource);
       expect(policyTypeDataSource).toBeTruthy();
     });