diff --git a/goofy-client/libs/ui/src/lib/ui/editor/autocomplete-editor/autocomplete-editor.component.spec.ts b/goofy-client/libs/ui/src/lib/ui/editor/autocomplete-editor/autocomplete-editor.component.spec.ts index 0ef062fa98f92cdd9e5031fec8e7daf33b1c16f4..e613dba1758539ca77c518633c0675d0e0b73a98 100644 --- a/goofy-client/libs/ui/src/lib/ui/editor/autocomplete-editor/autocomplete-editor.component.spec.ts +++ b/goofy-client/libs/ui/src/lib/ui/editor/autocomplete-editor/autocomplete-editor.component.spec.ts @@ -1,5 +1,5 @@ import { ComponentFixture, TestBed } from '@angular/core/testing'; -import { ReactiveFormsModule } from '@angular/forms'; +import { FormControl, NgControl, ReactiveFormsModule } from '@angular/forms'; import { MatAutocompleteModule } from '@angular/material/autocomplete'; import { MatFormFieldModule } from '@angular/material/form-field'; import { MatInputModule } from '@angular/material/input'; @@ -10,7 +10,7 @@ import { MockComponent } from 'ng-mocks'; import { ValidationErrorComponent } from '../../validation-error/validation-error.component'; import { AutocompleteEditorComponent } from './autocomplete-editor.component'; -describe.skip('AutocompleteEditorComponent', () => { +describe('AutocompleteEditorComponent', () => { let component: AutocompleteEditorComponent; let fixture: ComponentFixture<AutocompleteEditorComponent>; @@ -27,6 +27,12 @@ describe.skip('AutocompleteEditorComponent', () => { MatInputModule, ReactiveFormsModule, BrowserAnimationsModule + ], + providers: [ + { + provide: NgControl, + useValue: new FormControl() + } ] }) }) diff --git a/goofy-client/libs/ui/src/lib/ui/text-editor/text-editor.component.spec.ts b/goofy-client/libs/ui/src/lib/ui/text-editor/text-editor.component.spec.ts index a52778bd3dbf74a9c0a94ec94f720d90fea73fd2..1877503cae5e31f0b12186850bb1bdcdef01dbfe 100644 --- a/goofy-client/libs/ui/src/lib/ui/text-editor/text-editor.component.spec.ts +++ b/goofy-client/libs/ui/src/lib/ui/text-editor/text-editor.component.spec.ts @@ -1,5 +1,5 @@ import { ComponentFixture, TestBed } from '@angular/core/testing'; -import { ReactiveFormsModule } from '@angular/forms'; +import { FormControl, NgControl, ReactiveFormsModule } from '@angular/forms'; import { MatFormFieldModule } from '@angular/material/form-field'; import { MatInputModule } from '@angular/material/input'; import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; @@ -9,7 +9,7 @@ import { MockComponent } from 'ng-mocks'; import { ValidationErrorComponent } from '../validation-error/validation-error.component'; import { TextEditorComponent } from './text-editor.component'; -describe.skip('TextEditorComponent', () => { +describe('TextEditorComponent', () => { let component: TextEditorComponent; let fixture: ComponentFixture<TextEditorComponent>; @@ -27,6 +27,12 @@ describe.skip('TextEditorComponent', () => { MatInputModule, ReactiveFormsModule, BrowserAnimationsModule + ], + providers: [ + { + provide: NgControl, + useValue: new FormControl() + } ] }) }) diff --git a/goofy-client/libs/ui/src/lib/ui/textarea-editor/textarea-editor.component.spec.ts b/goofy-client/libs/ui/src/lib/ui/textarea-editor/textarea-editor.component.spec.ts index 5a3ff54ecfaa656b939ef3d1957bbb4d63fb247f..734893768625730046c44130eb283482ca0712f5 100644 --- a/goofy-client/libs/ui/src/lib/ui/textarea-editor/textarea-editor.component.spec.ts +++ b/goofy-client/libs/ui/src/lib/ui/textarea-editor/textarea-editor.component.spec.ts @@ -1,19 +1,20 @@ import { ComponentFixture, TestBed } from '@angular/core/testing'; -import { ReactiveFormsModule } from '@angular/forms'; +import { FormControl, NgControl, ReactiveFormsModule } from '@angular/forms'; import { MatFormFieldModule } from '@angular/material/form-field'; import { MatInputModule } from '@angular/material/input'; import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { ConvertForDataTestPipe } from '@goofy-client/tech-shared'; +import { configureTestSuite } from 'ng-bullet'; import { MockComponent } from 'ng-mocks'; import { ValidationErrorComponent } from '../validation-error/validation-error.component'; import { TextAreaEditorComponent } from './textarea-editor.component'; -describe.skip('TextAreaEditorComponent', () => { +describe('TextAreaEditorComponent', () => { let component: TextAreaEditorComponent; let fixture: ComponentFixture<TextAreaEditorComponent>; - beforeEach(async () => { - await TestBed.configureTestingModule({ + configureTestSuite(() => { + TestBed.configureTestingModule({ declarations: [ TextAreaEditorComponent, ConvertForDataTestPipe, @@ -25,8 +26,14 @@ describe.skip('TextAreaEditorComponent', () => { ReactiveFormsModule, BrowserAnimationsModule ], - }).compileComponents(); - }); + providers: [ + { + provide: NgControl, + useValue: new FormControl() + } + ] + }) + }) beforeEach(() => { fixture = TestBed.createComponent(TextAreaEditorComponent);