diff --git a/apps/mina-sidor-fa/src/app/pages/administration/pages/employee-form/edit-employee-form/edit-employee-form.component.html b/apps/mina-sidor-fa/src/app/pages/administration/pages/employee-form/edit-employee-form/edit-employee-form.component.html index fb11280..1f0124d 100644 --- a/apps/mina-sidor-fa/src/app/pages/administration/pages/employee-form/edit-employee-form/edit-employee-form.component.html +++ b/apps/mina-sidor-fa/src/app/pages/administration/pages/employee-form/edit-employee-form/edit-employee-form.component.html @@ -12,6 +12,7 @@ > { let component: EditEmployeeFormComponent; @@ -18,17 +12,7 @@ describe('EditEmployeeFormComponent', () => { beforeEach(async () => { await TestBed.configureTestingModule({ declarations: [EditEmployeeFormComponent], - imports: [ - ReactiveFormsModule, - DigiNgFormInputModule, - DigiNgFormRadiobuttonGroupModule, - DigiNgFormDatepickerModule, - DigiNgPopoverModule, - DigiNgFormCheckboxModule, - HttpClientTestingModule, - TreeNodesSelectorModule, - RouterTestingModule, - ], + imports: [HttpClientTestingModule, RouterTestingModule, EmployeeFormModule], schemas: [CUSTOM_ELEMENTS_SCHEMA], }).compileComponents(); }); diff --git a/apps/mina-sidor-fa/src/app/pages/deltagare/pages/deltagare-details/pages/report-forms/slutredovisning-form/slutredovisning-form-step3/slutredovisning-form-step3.component.ts b/apps/mina-sidor-fa/src/app/pages/deltagare/pages/deltagare-details/pages/report-forms/slutredovisning-form/slutredovisning-form-step3/slutredovisning-form-step3.component.ts index ff8a02e..bef2093 100644 --- a/apps/mina-sidor-fa/src/app/pages/deltagare/pages/deltagare-details/pages/report-forms/slutredovisning-form/slutredovisning-form-step3/slutredovisning-form-step3.component.ts +++ b/apps/mina-sidor-fa/src/app/pages/deltagare/pages/deltagare-details/pages/report-forms/slutredovisning-form/slutredovisning-form-step3/slutredovisning-form-step3.component.ts @@ -51,7 +51,7 @@ export class SlutredovisningFormStep3Component implements OnInit { ngOnInit(): void { this.slutredovisning$ = - this.slutredovisningFormData.mainOccupation.type === MainOccupation.Work + this.slutredovisningFormData?.mainOccupation?.type === MainOccupation.Work ? this.slutredovisningFormService.yrkeToTextMap$.pipe( map(yrkeToText => this._formDataWithWorkToSlutredovisning(this.slutredovisningFormData, yrkeToText)) ) diff --git a/apps/mina-sidor-fa/src/app/shared/components/handledare-picker-form/handledare-picker-form.component.spec.ts b/apps/mina-sidor-fa/src/app/shared/components/handledare-picker-form/handledare-picker-form.component.spec.ts index 0de797c..c34932b 100644 --- a/apps/mina-sidor-fa/src/app/shared/components/handledare-picker-form/handledare-picker-form.component.spec.ts +++ b/apps/mina-sidor-fa/src/app/shared/components/handledare-picker-form/handledare-picker-form.component.spec.ts @@ -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(); diff --git a/apps/mina-sidor-fa/src/app/shared/components/organization-picker-form/organization-picker-form.component.spec.ts b/apps/mina-sidor-fa/src/app/shared/components/organization-picker-form/organization-picker-form.component.spec.ts index 67355d1..0ab7070 100644 --- a/apps/mina-sidor-fa/src/app/shared/components/organization-picker-form/organization-picker-form.component.spec.ts +++ b/apps/mina-sidor-fa/src/app/shared/components/organization-picker-form/organization-picker-form.component.spec.ts @@ -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();