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-type%2Fformly-input-type.component.spec.ts;h=0818807d08c67ac54bce46525cf4ac9ac8c466e7;hb=aee94f6923ba628a85d855d0c5316d0da78bfa2a;hp=0a36356dc23977a06eaf43ab36af0dff6200cb7a;hpb=27f45121cc74e31203777ad565f78d8aad9b92a2;p=ceph.git diff --git a/ceph/src/pybind/mgr/dashboard/frontend/src/app/shared/forms/crud-form/formly-input-type/formly-input-type.component.spec.ts b/ceph/src/pybind/mgr/dashboard/frontend/src/app/shared/forms/crud-form/formly-input-type/formly-input-type.component.spec.ts index 0a36356dc..0818807d0 100644 --- a/ceph/src/pybind/mgr/dashboard/frontend/src/app/shared/forms/crud-form/formly-input-type/formly-input-type.component.spec.ts +++ b/ceph/src/pybind/mgr/dashboard/frontend/src/app/shared/forms/crud-form/formly-input-type/formly-input-type.component.spec.ts @@ -4,6 +4,7 @@ import { FormGroup } from '@angular/forms'; import { FormlyFieldConfig, FormlyModule } from '@ngx-formly/core'; import { FormlyInputTypeComponent } from './formly-input-type.component'; +import { configureTestBed } from '~/testing/unit-test-helper'; @Component({ template: `
@@ -24,15 +25,13 @@ describe('FormlyInputTypeComponent', () => { let component: MockFormComponent; let fixture: ComponentFixture; - beforeEach(async () => { - await TestBed.configureTestingModule({ - declarations: [FormlyInputTypeComponent], - imports: [ - FormlyModule.forRoot({ - types: [{ name: 'input', component: FormlyInputTypeComponent }] - }) - ] - }).compileComponents(); + configureTestBed({ + declarations: [FormlyInputTypeComponent], + imports: [ + FormlyModule.forRoot({ + types: [{ name: 'input', component: FormlyInputTypeComponent }] + }) + ] }); beforeEach(() => {