Skip to content

Commit

Permalink
Fixed child form tests by injecting NGXS store
Browse files Browse the repository at this point in the history
  • Loading branch information
doliinyk committed Oct 6, 2023
1 parent 4a913ee commit e664458
Showing 1 changed file with 13 additions and 10 deletions.
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
import { MatChipsModule } from '@angular/material/chips';
import { MatIconModule } from '@angular/material/icon';
import { Component, Input } from '@angular/core';
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { ChildFormComponent } from './child-form.component';
import { MatFormFieldModule } from '@angular/material/form-field';
import { MatDatepickerModule } from '@angular/material/datepicker';
import { MatRadioModule } from '@angular/material/radio';
import { MatNativeDateModule, MatOptionModule } from '@angular/material/core';
import { FormControl, FormGroup, FormsModule, ReactiveFormsModule } from '@angular/forms';
import { MatChipsModule } from '@angular/material/chips';
import { MatNativeDateModule, MatOptionModule } from '@angular/material/core';
import { MatDatepickerModule } from '@angular/material/datepicker';
import { MatFormFieldModule } from '@angular/material/form-field';
import { MatIconModule } from '@angular/material/icon';
import { MatInputModule } from '@angular/material/input';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { MatRadioModule } from '@angular/material/radio';
import { MatSelectModule } from '@angular/material/select';
import { Component, Input } from '@angular/core';
import { KeyFilterDirective } from '../../../../../shared/directives/key-filter.directive';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { TranslateModule } from '@ngx-translate/core';
import { NgxsModule } from '@ngxs/store';

import { KeyFilterDirective } from 'shared/directives/key-filter.directive';
import { ChildFormComponent } from './child-form.component';

describe('ChildFormComponent', () => {
let component: ChildFormComponent;
Expand All @@ -33,6 +35,7 @@ describe('ChildFormComponent', () => {
MatSelectModule,
MatIconModule,
MatChipsModule,
NgxsModule.forRoot([]),
TranslateModule.forRoot()
],
declarations: [ChildFormComponent, MockValidationHintForInputComponent, KeyFilterDirective]
Expand Down

0 comments on commit e664458

Please sign in to comment.