Skip to content

Commit 24c23fe

Browse files
Copilotrenemadsen
andcommitted
Add NO_ERRORS_SCHEMA to all component test specs to fix template compilation errors
Co-authored-by: renemadsen <[email protected]>
1 parent 0751da1 commit 24c23fe

File tree

5 files changed

+10
-1
lines changed

5 files changed

+10
-1
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { FormBuilder, ReactiveFormsModule } from '@angular/forms';
55
import { TimePlanningPnSettingsService } from '../../../../services';
66
import { Store } from '@ngrx/store';
77
import { of } from 'rxjs';
8+
import { NO_ERRORS_SCHEMA } from '@angular/core';
89

910
describe('AssignedSiteDialogComponent', () => {
1011
let component: AssignedSiteDialogComponent;
@@ -67,6 +68,7 @@ describe('AssignedSiteDialogComponent', () => {
6768
await TestBed.configureTestingModule({
6869
declarations: [AssignedSiteDialogComponent],
6970
imports: [ReactiveFormsModule],
71+
schemas: [NO_ERRORS_SCHEMA],
7072
providers: [
7173
FormBuilder,
7274
{ provide: MAT_DIALOG_DATA, useValue: mockAssignedSiteData },

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { TimePlanningPnWorkingHoursService } from '../../../../services';
55
import { ToastrService } from 'ngx-toastr';
66
import { of, throwError } from 'rxjs';
77
import { format } from 'date-fns';
8+
import { NO_ERRORS_SCHEMA } from '@angular/core';
89

910
describe('DownloadExcelDialogComponent', () => {
1011
let component: DownloadExcelDialogComponent;
@@ -24,6 +25,7 @@ describe('DownloadExcelDialogComponent', () => {
2425

2526
await TestBed.configureTestingModule({
2627
declarations: [DownloadExcelDialogComponent],
28+
schemas: [NO_ERRORS_SCHEMA],
2729
providers: [
2830
{ provide: MAT_DIALOG_DATA, useValue: [] },
2931
{ provide: TimePlanningPnWorkingHoursService, useValue: mockWorkingHoursService },

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 & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { TimePlanningPnPlanningsService } from '../../../../services';
66
import { TranslateService } from '@ngx-translate/core';
77
import { DatePipe } from '@angular/common';
88
import { of } from 'rxjs';
9+
import { NO_ERRORS_SCHEMA } from '@angular/core';
910

1011
describe('WorkdayEntityDialogComponent', () => {
1112
let component: WorkdayEntityDialogComponent;
@@ -97,6 +98,7 @@ describe('WorkdayEntityDialogComponent', () => {
9798
await TestBed.configureTestingModule({
9899
declarations: [WorkdayEntityDialogComponent],
99100
imports: [ReactiveFormsModule],
101+
schemas: [NO_ERRORS_SCHEMA],
100102
providers: [
101103
FormBuilder,
102104
DatePipe,

eform-client/src/app/plugins/modules/time-planning-pn/components/plannings/time-plannings-container/time-plannings-container.component.spec.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { MatDialog } from '@angular/material/dialog';
66
import { Store } from '@ngrx/store';
77
import { of } from 'rxjs';
88
import { format } from 'date-fns';
9+
import { NO_ERRORS_SCHEMA } from '@angular/core';
910

1011
describe('TimePlanningsContainerComponent', () => {
1112
let component: TimePlanningsContainerComponent;
@@ -39,6 +40,7 @@ describe('TimePlanningsContainerComponent', () => {
3940

4041
await TestBed.configureTestingModule({
4142
declarations: [TimePlanningsContainerComponent],
43+
schemas: [NO_ERRORS_SCHEMA],
4244
providers: [
4345
{ provide: TimePlanningPnPlanningsService, useValue: mockPlanningsService },
4446
{ provide: TimePlanningPnSettingsService, useValue: mockSettingsService },

eform-client/src/app/plugins/modules/time-planning-pn/components/plannings/time-plannings-table/time-plannings-table.component.spec.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { TimePlanningPnSettingsService } from '../../../services/time-planning-p
55
import { MatDialog } from '@angular/material/dialog';
66
import { TranslateService } from '@ngx-translate/core';
77
import { DatePipe } from '@angular/common';
8-
import { ChangeDetectorRef } from '@angular/core';
8+
import { ChangeDetectorRef, NO_ERRORS_SCHEMA } from '@angular/core';
99
import { Store } from '@ngrx/store';
1010
import { of } from 'rxjs';
1111

@@ -45,6 +45,7 @@ describe('TimePlanningsTableComponent', () => {
4545

4646
await TestBed.configureTestingModule({
4747
declarations: [TimePlanningsTableComponent],
48+
schemas: [NO_ERRORS_SCHEMA],
4849
providers: [
4950
{ provide: TimePlanningPnPlanningsService, useValue: mockPlanningsService },
5051
{ provide: TimePlanningPnSettingsService, useValue: mockSettingsService },

0 commit comments

Comments
 (0)