]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/pybind/mgr/dashboard/frontend/src/app/shared/forms/crud-form/formly-textarea-type/formly-textarea-type.component.spec.ts
update ceph source to reef 18.2.1
[ceph.git] / ceph / src / pybind / mgr / dashboard / frontend / src / app / shared / forms / crud-form / formly-textarea-type / formly-textarea-type.component.spec.ts
index f3271785bad3d6c7995666be4d94b0ad1ac0ab5c..11eaa20755c6ec6fd180ad7456674fdda2b2597e 100644 (file)
@@ -4,6 +4,7 @@ import { FormGroup } from '@angular/forms';
 import { FormlyFieldConfig, FormlyModule } from '@ngx-formly/core';
 
 import { FormlyTextareaTypeComponent } from './formly-textarea-type.component';
+import { configureTestBed } from '~/testing/unit-test-helper';
 
 @Component({
   template: ` <form [formGroup]="form">
@@ -20,19 +21,18 @@ class MockFormComponent {
     }
   ];
 }
+
 describe('FormlyTextareaTypeComponent', () => {
   let component: MockFormComponent;
   let fixture: ComponentFixture<MockFormComponent>;
 
-  beforeEach(async () => {
-    await TestBed.configureTestingModule({
-      declarations: [FormlyTextareaTypeComponent],
-      imports: [
-        FormlyModule.forRoot({
-          types: [{ name: 'input', component: FormlyTextareaTypeComponent }]
-        })
-      ]
-    }).compileComponents();
+  configureTestBed({
+    declarations: [FormlyTextareaTypeComponent],
+    imports: [
+      FormlyModule.forRoot({
+        types: [{ name: 'input', component: FormlyTextareaTypeComponent }]
+      })
+    ]
   });
 
   beforeEach(() => {