import { HttpClientTestingModule, HttpTestingController } from '@angular/common/http/testing';
import { TestBed } from '@angular/core/testing';
-import { configureTestBed, i18nProviders } from '../../../testing/unit-test-helper';
+import { configureTestBed } from '~/testing/unit-test-helper';
import { ErasureCodeProfile } from '../models/erasure-code-profile';
import { ErasureCodeProfileService } from './erasure-code-profile.service';
configureTestBed({
imports: [HttpClientTestingModule],
- providers: [ErasureCodeProfileService, i18nProviders]
+ providers: [ErasureCodeProfileService]
});
beforeEach(() => {
- service = TestBed.get(ErasureCodeProfileService);
- httpTesting = TestBed.get(HttpTestingController);
+ service = TestBed.inject(ErasureCodeProfileService);
+ httpTesting = TestBed.inject(HttpTestingController);
});
afterEach(() => {