X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=ceph%2Fsrc%2Fpybind%2Fmgr%2Fdashboard%2Ffrontend%2Fsrc%2Fapp%2Fshared%2Fforms%2Fcrud-form%2Fformly-input-wrapper%2Fformly-input-wrapper.component.spec.ts;h=52358d66002ae30727de79cd84858888411c6f1b;hb=aee94f6923ba628a85d855d0c5316d0da78bfa2a;hp=db93615cd94772c93e44f7493978333d9423e021;hpb=27f45121cc74e31203777ad565f78d8aad9b92a2;p=ceph.git diff --git a/ceph/src/pybind/mgr/dashboard/frontend/src/app/shared/forms/crud-form/formly-input-wrapper/formly-input-wrapper.component.spec.ts b/ceph/src/pybind/mgr/dashboard/frontend/src/app/shared/forms/crud-form/formly-input-wrapper/formly-input-wrapper.component.spec.ts index db93615cd..52358d660 100644 --- a/ceph/src/pybind/mgr/dashboard/frontend/src/app/shared/forms/crud-form/formly-input-wrapper/formly-input-wrapper.component.spec.ts +++ b/ceph/src/pybind/mgr/dashboard/frontend/src/app/shared/forms/crud-form/formly-input-wrapper/formly-input-wrapper.component.spec.ts @@ -4,6 +4,7 @@ import { FormGroup } from '@angular/forms'; import { FormlyFieldConfig, FormlyModule } from '@ngx-formly/core'; import { FormlyInputWrapperComponent } from './formly-input-wrapper.component'; +import { configureTestBed } from '~/testing/unit-test-helper'; @Component({ template: `
@@ -24,15 +25,13 @@ describe('FormlyInputWrapperComponent', () => { let component: MockFormComponent; let fixture: ComponentFixture; - beforeEach(async () => { - await TestBed.configureTestingModule({ - declarations: [FormlyInputWrapperComponent], - imports: [ - FormlyModule.forRoot({ - types: [{ name: 'input', component: FormlyInputWrapperComponent }] - }) - ] - }).compileComponents(); + configureTestBed({ + declarations: [FormlyInputWrapperComponent], + imports: [ + FormlyModule.forRoot({ + types: [{ name: 'input', component: FormlyInputWrapperComponent }] + }) + ] }); beforeEach(() => {