Skip to content
Snippets Groups Projects
Commit 513e2000 authored by OZGCloud's avatar OZGCloud
Browse files

OZG-989 add provider to fix test's

parent 555688a1
No related branches found
No related tags found
No related merge requests found
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()
}
]
})
})
......
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()
}
]
})
})
......
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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment