X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=webapp-frontend%2Fsrc%2Fapp%2Fpolicy-control%2Fpolicy-type.datasource.spec.ts;h=ac19f82b9d508f5a11112761cbb49a6e9d78e304;hb=refs%2Fchanges%2F68%2F5668%2F5;hp=5b833686258d7a47b3e3a208e4abee324595b46d;hpb=9d7d3121efae3af7b8b06b9753cfd8e7bfac3650;p=portal%2Fnonrtric-controlpanel.git diff --git a/webapp-frontend/src/app/policy-control/policy-type.datasource.spec.ts b/webapp-frontend/src/app/policy-control/policy-type.datasource.spec.ts index 5b83368..ac19f82 100644 --- a/webapp-frontend/src/app/policy-control/policy-type.datasource.spec.ts +++ b/webapp-frontend/src/app/policy-control/policy-type.datasource.spec.ts @@ -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(); });