Skip to content

Commit b5f57fc

Browse files
Copilotrenemadsen
andcommitted
Add FormsModule and CommonModule to fix remaining test failures
Co-authored-by: renemadsen <[email protected]>
1 parent fcf4776 commit b5f57fc

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

eform-client/src/app/plugins/modules/time-planning-pn/components/plannings/time-planning-actions/download-excel/download-excel-dialog.component.spec.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ import { of, throwError } from 'rxjs';
77
import { format } from 'date-fns';
88
import { NO_ERRORS_SCHEMA } from '@angular/core';
99
import { TranslateModule } from '@ngx-translate/core';
10+
import { FormsModule } from '@angular/forms';
11+
import { CommonModule } from '@angular/common';
1012

1113
describe('DownloadExcelDialogComponent', () => {
1214
let component: DownloadExcelDialogComponent;
@@ -26,7 +28,7 @@ describe('DownloadExcelDialogComponent', () => {
2628

2729
await TestBed.configureTestingModule({
2830
declarations: [DownloadExcelDialogComponent],
29-
imports: [TranslateModule.forRoot()],
31+
imports: [CommonModule, FormsModule, TranslateModule.forRoot()],
3032
schemas: [NO_ERRORS_SCHEMA],
3133
providers: [
3234
{ provide: MAT_DIALOG_DATA, useValue: [] },

eform-client/src/app/plugins/modules/time-planning-pn/components/plannings/time-planning-actions/workday-entity/workday-entity-dialog.component.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { MAT_DIALOG_DATA } from '@angular/material/dialog';
44
import { FormBuilder, ReactiveFormsModule } from '@angular/forms';
55
import { TimePlanningPnPlanningsService } from '../../../../services';
66
import { TranslateService } from '@ngx-translate/core';
7-
import { DatePipe } from '@angular/common';
7+
import { DatePipe, CommonModule } from '@angular/common';
88
import { of } from 'rxjs';
99
import { NO_ERRORS_SCHEMA } from '@angular/core';
1010
import { TranslateModule } from '@ngx-translate/core';
@@ -98,7 +98,7 @@ describe('WorkdayEntityDialogComponent', () => {
9898

9999
await TestBed.configureTestingModule({
100100
declarations: [WorkdayEntityDialogComponent],
101-
imports: [ReactiveFormsModule, TranslateModule.forRoot()],
101+
imports: [CommonModule, ReactiveFormsModule, TranslateModule.forRoot()],
102102
schemas: [NO_ERRORS_SCHEMA],
103103
providers: [
104104
FormBuilder,

0 commit comments

Comments
 (0)