import { ComponentFixture, TestBed } from '@angular/core/testing';
import { ReactiveFormsModule } from '@angular/forms';
-import * as _ from 'lodash';
-import { PopoverModule } from 'ngx-bootstrap/popover';
+import { NgbPopoverModule } from '@ng-bootstrap/ng-bootstrap';
+import _ from 'lodash';
import { of as observableOf } from 'rxjs';
-import { configureTestBed } from '../../../../testing/unit-test-helper';
-import { ConfigurationService } from '../../api/configuration.service';
-import { CdFormGroup } from '../../forms/cd-form-group';
+import { ConfigurationService } from '~/app/shared/api/configuration.service';
+import { CdFormGroup } from '~/app/shared/forms/cd-form-group';
+import { configureTestBed } from '~/testing/unit-test-helper';
import { HelperComponent } from '../helper/helper.component';
import { ConfigOptionComponent } from './config-option.component';
configureTestBed({
declarations: [ConfigOptionComponent, HelperComponent],
- imports: [PopoverModule.forRoot(), ReactiveFormsModule, HttpClientTestingModule],
+ imports: [NgbPopoverModule, ReactiveFormsModule, HttpClientTestingModule],
providers: [ConfigurationService]
});
fixture = TestBed.createComponent(ConfigOptionComponent);
component = fixture.componentInstance;
fixture.detectChanges();
- configurationService = TestBed.get(ConfigurationService);
+ configurationService = TestBed.inject(ConfigurationService);
const configOptions: Record<string, any> = [
{