fix failing tests

This commit is contained in:
Daniel Appelgren
2021-11-24 14:25:26 +01:00
parent 5488145e0c
commit 6687edbfd1
5 changed files with 11 additions and 23 deletions
@@ -1,8 +1,9 @@
import { HttpClientTestingModule } from '@angular/common/http/testing';
import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { ReactiveFormsModule } from '@angular/forms';
import { HandledarePickerFormComponent } from './handledare-picker-form.component';
import { HandledarePickerFormModule } from '@msfa-shared/components/handledare-picker-form/handledare-picker-form.module';
describe('HandledarePickerFormComponent', () => {
let component: HandledarePickerFormComponent;
@@ -10,7 +11,7 @@ describe('HandledarePickerFormComponent', () => {
beforeEach(async () => {
await TestBed.configureTestingModule({
imports: [ReactiveFormsModule, HttpClientTestingModule, FormsModule],
imports: [ReactiveFormsModule, HttpClientTestingModule, HandledarePickerFormModule],
declarations: [HandledarePickerFormComponent],
schemas: [CUSTOM_ELEMENTS_SCHEMA],
}).compileComponents();
@@ -1,7 +1,8 @@
import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { ReactiveFormsModule } from '@angular/forms';
import { OrganizationPickerFormComponent } from './organization-picker-form.component';
import { OrganizationPickerFormModule } from '@msfa-shared/components/organization-picker-form/organization-picker-form.module';
describe('OrganizationPickerFormComponent', () => {
let component: OrganizationPickerFormComponent;
@@ -9,7 +10,7 @@ describe('OrganizationPickerFormComponent', () => {
beforeEach(async () => {
await TestBed.configureTestingModule({
imports: [ReactiveFormsModule, FormsModule],
imports: [ReactiveFormsModule, OrganizationPickerFormModule],
declarations: [OrganizationPickerFormComponent],
schemas: [CUSTOM_ELEMENTS_SCHEMA],
}).compileComponents();