Fix failing tests
This commit is contained in:
@@ -3,6 +3,7 @@ import { CUSTOM_ELEMENTS_SCHEMA, NO_ERRORS_SCHEMA } from '@angular/core';
|
|||||||
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
|
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
|
||||||
import { RouterTestingModule } from '@angular/router/testing';
|
import { RouterTestingModule } from '@angular/router/testing';
|
||||||
import { AccessibilityComponent } from './accessibility.component';
|
import { AccessibilityComponent } from './accessibility.component';
|
||||||
|
import { ApmModule } from '@elastic/apm-rum-angular';
|
||||||
|
|
||||||
describe('AccessibilityComponent', () => {
|
describe('AccessibilityComponent', () => {
|
||||||
let component: AccessibilityComponent;
|
let component: AccessibilityComponent;
|
||||||
@@ -13,7 +14,7 @@ describe('AccessibilityComponent', () => {
|
|||||||
void TestBed.configureTestingModule({
|
void TestBed.configureTestingModule({
|
||||||
schemas: [CUSTOM_ELEMENTS_SCHEMA, NO_ERRORS_SCHEMA],
|
schemas: [CUSTOM_ELEMENTS_SCHEMA, NO_ERRORS_SCHEMA],
|
||||||
declarations: [AccessibilityComponent],
|
declarations: [AccessibilityComponent],
|
||||||
imports: [RouterTestingModule, HttpClientTestingModule],
|
imports: [RouterTestingModule, ApmModule, HttpClientTestingModule],
|
||||||
}).compileComponents();
|
}).compileComponents();
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -1,12 +1,15 @@
|
|||||||
import { TestBed } from '@angular/core/testing';
|
import { TestBed } from '@angular/core/testing';
|
||||||
|
|
||||||
import { EmployeeFormService } from './employee-form.service';
|
import { EmployeeFormService } from './employee-form.service';
|
||||||
|
import { RouterTestingModule } from '@angular/router/testing';
|
||||||
|
import { ApmModule } from '@elastic/apm-rum-angular';
|
||||||
|
import { HttpClientTestingModule } from '@angular/common/http/testing';
|
||||||
|
|
||||||
describe('EmployeeFormService', () => {
|
describe('EmployeeFormService', () => {
|
||||||
let service: EmployeeFormService;
|
let service: EmployeeFormService;
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
TestBed.configureTestingModule({});
|
TestBed.configureTestingModule({ imports: [RouterTestingModule, ApmModule, HttpClientTestingModule] });
|
||||||
service = TestBed.inject(EmployeeFormService);
|
service = TestBed.inject(EmployeeFormService);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ import { RouterTestingModule } from '@angular/router/testing';
|
|||||||
import { LayoutComponent } from '@msfa-shared/components/layout/layout.component';
|
import { LayoutComponent } from '@msfa-shared/components/layout/layout.component';
|
||||||
import { DeltagareCardComponent } from './deltagare-card.component';
|
import { DeltagareCardComponent } from './deltagare-card.component';
|
||||||
import { DeltagareCardService } from './deltagare-card.service';
|
import { DeltagareCardService } from './deltagare-card.service';
|
||||||
|
import { ApmModule } from '@elastic/apm-rum-angular';
|
||||||
|
|
||||||
describe('DeltagareCardComponent', () => {
|
describe('DeltagareCardComponent', () => {
|
||||||
let component: DeltagareCardComponent;
|
let component: DeltagareCardComponent;
|
||||||
@@ -14,7 +15,7 @@ describe('DeltagareCardComponent', () => {
|
|||||||
waitForAsync(() => {
|
waitForAsync(() => {
|
||||||
void TestBed.configureTestingModule({
|
void TestBed.configureTestingModule({
|
||||||
declarations: [DeltagareCardComponent, LayoutComponent],
|
declarations: [DeltagareCardComponent, LayoutComponent],
|
||||||
imports: [RouterTestingModule, HttpClientTestingModule],
|
imports: [RouterTestingModule, ApmModule, HttpClientTestingModule],
|
||||||
providers: [DeltagareCardService],
|
providers: [DeltagareCardService],
|
||||||
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
||||||
}).compileComponents();
|
}).compileComponents();
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ import { RouterTestingModule } from '@angular/router/testing';
|
|||||||
import { LayoutComponent } from '@msfa-shared/components/layout/layout.component';
|
import { LayoutComponent } from '@msfa-shared/components/layout/layout.component';
|
||||||
import { AvvikelseReportFormComponent } from './avvikelse-report-form.component';
|
import { AvvikelseReportFormComponent } from './avvikelse-report-form.component';
|
||||||
import { AvvikelseReportFormService } from './avvikelse-report-form.service';
|
import { AvvikelseReportFormService } from './avvikelse-report-form.service';
|
||||||
|
import { ApmModule } from '@elastic/apm-rum-angular';
|
||||||
|
|
||||||
describe('AvvikelseReportFormComponent', () => {
|
describe('AvvikelseReportFormComponent', () => {
|
||||||
let component: AvvikelseReportFormComponent;
|
let component: AvvikelseReportFormComponent;
|
||||||
@@ -23,6 +24,7 @@ describe('AvvikelseReportFormComponent', () => {
|
|||||||
ReactiveFormsModule,
|
ReactiveFormsModule,
|
||||||
DigiNgFormRadiobuttonGroupModule,
|
DigiNgFormRadiobuttonGroupModule,
|
||||||
DigiNgFormDatepickerModule,
|
DigiNgFormDatepickerModule,
|
||||||
|
ApmModule,
|
||||||
],
|
],
|
||||||
providers: [AvvikelseReportFormService],
|
providers: [AvvikelseReportFormService],
|
||||||
}).compileComponents();
|
}).compileComponents();
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ import { RouterTestingModule } from '@angular/router/testing';
|
|||||||
import { LayoutComponent } from '@msfa-shared/components/layout/layout.component';
|
import { LayoutComponent } from '@msfa-shared/components/layout/layout.component';
|
||||||
import { FranvaroReportFormComponent } from './franvaro-report-form.component';
|
import { FranvaroReportFormComponent } from './franvaro-report-form.component';
|
||||||
import { FranvaroReportFormService } from './franvaro-report-form.service';
|
import { FranvaroReportFormService } from './franvaro-report-form.service';
|
||||||
|
import { ApmModule } from '@elastic/apm-rum-angular';
|
||||||
|
|
||||||
describe('FranvaroReportFormComponent', () => {
|
describe('FranvaroReportFormComponent', () => {
|
||||||
let component: FranvaroReportFormComponent;
|
let component: FranvaroReportFormComponent;
|
||||||
@@ -14,7 +15,7 @@ describe('FranvaroReportFormComponent', () => {
|
|||||||
await TestBed.configureTestingModule({
|
await TestBed.configureTestingModule({
|
||||||
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
||||||
declarations: [FranvaroReportFormComponent, LayoutComponent],
|
declarations: [FranvaroReportFormComponent, LayoutComponent],
|
||||||
imports: [RouterTestingModule, HttpClientTestingModule],
|
imports: [RouterTestingModule, ApmModule, HttpClientTestingModule],
|
||||||
providers: [FranvaroReportFormService],
|
providers: [FranvaroReportFormService],
|
||||||
}).compileComponents();
|
}).compileComponents();
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ import { RouterTestingModule } from '@angular/router/testing';
|
|||||||
import { LayoutComponent } from '@msfa-shared/components/layout/layout.component';
|
import { LayoutComponent } from '@msfa-shared/components/layout/layout.component';
|
||||||
import { GemensamPlaneringFormComponent } from './gemensam-planering-form.component';
|
import { GemensamPlaneringFormComponent } from './gemensam-planering-form.component';
|
||||||
import { GemensamPlaneringFormService } from './gemensam-planering-form.service';
|
import { GemensamPlaneringFormService } from './gemensam-planering-form.service';
|
||||||
|
import { ApmModule } from '@elastic/apm-rum-angular';
|
||||||
|
|
||||||
describe('GemensamPlaneringFormComponent', () => {
|
describe('GemensamPlaneringFormComponent', () => {
|
||||||
let component: GemensamPlaneringFormComponent;
|
let component: GemensamPlaneringFormComponent;
|
||||||
@@ -21,6 +22,7 @@ describe('GemensamPlaneringFormComponent', () => {
|
|||||||
HttpClientTestingModule,
|
HttpClientTestingModule,
|
||||||
DigiNgFormRadiobuttonGroupModule,
|
DigiNgFormRadiobuttonGroupModule,
|
||||||
DigiNgFormCheckboxModule,
|
DigiNgFormCheckboxModule,
|
||||||
|
ApmModule,
|
||||||
],
|
],
|
||||||
providers: [GemensamPlaneringFormService],
|
providers: [GemensamPlaneringFormService],
|
||||||
}).compileComponents();
|
}).compileComponents();
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ import { RouterTestingModule } from '@angular/router/testing';
|
|||||||
import { LayoutComponent } from '@msfa-shared/components/layout/layout.component';
|
import { LayoutComponent } from '@msfa-shared/components/layout/layout.component';
|
||||||
import { InformativRapportFormComponent } from './informativ-rapport-form.component';
|
import { InformativRapportFormComponent } from './informativ-rapport-form.component';
|
||||||
import { InformativRapportFormService } from './informativ-rapport-form.service';
|
import { InformativRapportFormService } from './informativ-rapport-form.service';
|
||||||
|
import { ApmModule } from '@elastic/apm-rum-angular';
|
||||||
|
|
||||||
describe('InformativRapportFormComponent', () => {
|
describe('InformativRapportFormComponent', () => {
|
||||||
let component: InformativRapportFormComponent;
|
let component: InformativRapportFormComponent;
|
||||||
@@ -16,7 +17,13 @@ describe('InformativRapportFormComponent', () => {
|
|||||||
await TestBed.configureTestingModule({
|
await TestBed.configureTestingModule({
|
||||||
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
||||||
declarations: [InformativRapportFormComponent, LayoutComponent],
|
declarations: [InformativRapportFormComponent, LayoutComponent],
|
||||||
imports: [RouterTestingModule, HttpClientTestingModule, ReactiveFormsModule, DigiNgFormRadiobuttonGroupModule],
|
imports: [
|
||||||
|
RouterTestingModule,
|
||||||
|
HttpClientTestingModule,
|
||||||
|
ReactiveFormsModule,
|
||||||
|
ApmModule,
|
||||||
|
DigiNgFormRadiobuttonGroupModule,
|
||||||
|
],
|
||||||
providers: [InformativRapportFormService],
|
providers: [InformativRapportFormService],
|
||||||
}).compileComponents();
|
}).compileComponents();
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ import { RouterTestingModule } from '@angular/router/testing';
|
|||||||
import { LayoutComponent } from '@msfa-shared/components/layout/layout.component';
|
import { LayoutComponent } from '@msfa-shared/components/layout/layout.component';
|
||||||
import { PeriodiskRedovisningFormComponent } from './periodisk-redovisning-form.component';
|
import { PeriodiskRedovisningFormComponent } from './periodisk-redovisning-form.component';
|
||||||
import { PeriodiskRedovisningFormService } from './periodisk-redovisning-form.service';
|
import { PeriodiskRedovisningFormService } from './periodisk-redovisning-form.service';
|
||||||
|
import { ApmModule } from '@elastic/apm-rum-angular';
|
||||||
|
|
||||||
describe('PeriodiskRedovisningFormComponent', () => {
|
describe('PeriodiskRedovisningFormComponent', () => {
|
||||||
let component: PeriodiskRedovisningFormComponent;
|
let component: PeriodiskRedovisningFormComponent;
|
||||||
@@ -18,6 +19,7 @@ describe('PeriodiskRedovisningFormComponent', () => {
|
|||||||
declarations: [PeriodiskRedovisningFormComponent, LayoutComponent],
|
declarations: [PeriodiskRedovisningFormComponent, LayoutComponent],
|
||||||
imports: [
|
imports: [
|
||||||
RouterTestingModule,
|
RouterTestingModule,
|
||||||
|
ApmModule,
|
||||||
HttpClientTestingModule,
|
HttpClientTestingModule,
|
||||||
DigiNgFormRadiobuttonGroupModule,
|
DigiNgFormRadiobuttonGroupModule,
|
||||||
DigiNgFormCheckboxModule,
|
DigiNgFormCheckboxModule,
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ import { RouterTestingModule } from '@angular/router/testing';
|
|||||||
import { LayoutComponent } from '@msfa-shared/components/layout/layout.component';
|
import { LayoutComponent } from '@msfa-shared/components/layout/layout.component';
|
||||||
import { SignalFormComponent } from './signal-form.component';
|
import { SignalFormComponent } from './signal-form.component';
|
||||||
import { SignalFormService } from './signal-form.service';
|
import { SignalFormService } from './signal-form.service';
|
||||||
|
import { ApmModule } from '@elastic/apm-rum-angular';
|
||||||
|
|
||||||
describe('SignalFormComponent', () => {
|
describe('SignalFormComponent', () => {
|
||||||
let component: SignalFormComponent;
|
let component: SignalFormComponent;
|
||||||
@@ -16,7 +17,13 @@ describe('SignalFormComponent', () => {
|
|||||||
await TestBed.configureTestingModule({
|
await TestBed.configureTestingModule({
|
||||||
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
||||||
declarations: [SignalFormComponent, LayoutComponent],
|
declarations: [SignalFormComponent, LayoutComponent],
|
||||||
imports: [RouterTestingModule, HttpClientTestingModule, ReactiveFormsModule, DigiNgFormRadiobuttonGroupModule],
|
imports: [
|
||||||
|
RouterTestingModule,
|
||||||
|
HttpClientTestingModule,
|
||||||
|
ApmModule,
|
||||||
|
ReactiveFormsModule,
|
||||||
|
DigiNgFormRadiobuttonGroupModule,
|
||||||
|
],
|
||||||
providers: [SignalFormService],
|
providers: [SignalFormService],
|
||||||
}).compileComponents();
|
}).compileComponents();
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ import { RouterTestingModule } from '@angular/router/testing';
|
|||||||
import { LayoutComponent } from '@msfa-shared/components/layout/layout.component';
|
import { LayoutComponent } from '@msfa-shared/components/layout/layout.component';
|
||||||
import { SlutredovisningFormComponent } from './slutredovisning-form.component';
|
import { SlutredovisningFormComponent } from './slutredovisning-form.component';
|
||||||
import { SlutredovisningFormService } from './slutredovisning-form.service';
|
import { SlutredovisningFormService } from './slutredovisning-form.service';
|
||||||
|
import { ApmModule } from '@elastic/apm-rum-angular';
|
||||||
|
|
||||||
describe('SlutredovisningReportFormComponent', () => {
|
describe('SlutredovisningReportFormComponent', () => {
|
||||||
let component: SlutredovisningFormComponent;
|
let component: SlutredovisningFormComponent;
|
||||||
@@ -23,6 +24,7 @@ describe('SlutredovisningReportFormComponent', () => {
|
|||||||
ReactiveFormsModule,
|
ReactiveFormsModule,
|
||||||
DigiNgFormRadiobuttonGroupModule,
|
DigiNgFormRadiobuttonGroupModule,
|
||||||
DigiNgFormDatepickerModule,
|
DigiNgFormDatepickerModule,
|
||||||
|
ApmModule,
|
||||||
],
|
],
|
||||||
providers: [SlutredovisningFormService],
|
providers: [SlutredovisningFormService],
|
||||||
}).compileComponents();
|
}).compileComponents();
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ import { RouterTestingModule } from '@angular/router/testing';
|
|||||||
import { LayoutComponent } from '@msfa-shared/components/layout/layout.component';
|
import { LayoutComponent } from '@msfa-shared/components/layout/layout.component';
|
||||||
import { AvvikelseReportViewComponent } from './avvikelse-report-view.component';
|
import { AvvikelseReportViewComponent } from './avvikelse-report-view.component';
|
||||||
import { AvvikelseReportViewService } from './avvikelse-report-view.service';
|
import { AvvikelseReportViewService } from './avvikelse-report-view.service';
|
||||||
|
import { ApmModule } from '@elastic/apm-rum-angular';
|
||||||
|
|
||||||
describe('AvvikelseReportViewComponent', () => {
|
describe('AvvikelseReportViewComponent', () => {
|
||||||
let component: AvvikelseReportViewComponent;
|
let component: AvvikelseReportViewComponent;
|
||||||
@@ -14,7 +15,7 @@ describe('AvvikelseReportViewComponent', () => {
|
|||||||
await TestBed.configureTestingModule({
|
await TestBed.configureTestingModule({
|
||||||
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
||||||
declarations: [AvvikelseReportViewComponent, LayoutComponent],
|
declarations: [AvvikelseReportViewComponent, LayoutComponent],
|
||||||
imports: [RouterTestingModule, HttpClientTestingModule],
|
imports: [RouterTestingModule, ApmModule, HttpClientTestingModule],
|
||||||
providers: [AvvikelseReportViewService],
|
providers: [AvvikelseReportViewService],
|
||||||
}).compileComponents();
|
}).compileComponents();
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ import { RouterTestingModule } from '@angular/router/testing';
|
|||||||
import { LayoutComponent } from '@msfa-shared/components/layout/layout.component';
|
import { LayoutComponent } from '@msfa-shared/components/layout/layout.component';
|
||||||
import { FranvaroReportViewComponent } from './franvaro-report-view.component';
|
import { FranvaroReportViewComponent } from './franvaro-report-view.component';
|
||||||
import { FranvaroReportViewService } from './franvaro-report-view.service';
|
import { FranvaroReportViewService } from './franvaro-report-view.service';
|
||||||
|
import { ApmModule } from '@elastic/apm-rum-angular';
|
||||||
|
|
||||||
describe('FranvaroReportViewComponent', () => {
|
describe('FranvaroReportViewComponent', () => {
|
||||||
let component: FranvaroReportViewComponent;
|
let component: FranvaroReportViewComponent;
|
||||||
@@ -14,7 +15,7 @@ describe('FranvaroReportViewComponent', () => {
|
|||||||
await TestBed.configureTestingModule({
|
await TestBed.configureTestingModule({
|
||||||
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
||||||
declarations: [FranvaroReportViewComponent, LayoutComponent],
|
declarations: [FranvaroReportViewComponent, LayoutComponent],
|
||||||
imports: [RouterTestingModule, HttpClientTestingModule],
|
imports: [RouterTestingModule, ApmModule, HttpClientTestingModule],
|
||||||
providers: [FranvaroReportViewService],
|
providers: [FranvaroReportViewService],
|
||||||
}).compileComponents();
|
}).compileComponents();
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ import { RouterTestingModule } from '@angular/router/testing';
|
|||||||
import { LayoutComponent } from '@msfa-shared/components/layout/layout.component';
|
import { LayoutComponent } from '@msfa-shared/components/layout/layout.component';
|
||||||
import { GemensamPlaneringViewComponent } from './gemensam-planering-view.component';
|
import { GemensamPlaneringViewComponent } from './gemensam-planering-view.component';
|
||||||
import { GemensamPlaneringViewService } from './gemensam-planering-view.service';
|
import { GemensamPlaneringViewService } from './gemensam-planering-view.service';
|
||||||
|
import { ApmModule } from '@elastic/apm-rum-angular';
|
||||||
|
|
||||||
describe('GemensamPlaneringViewComponent', () => {
|
describe('GemensamPlaneringViewComponent', () => {
|
||||||
let component: GemensamPlaneringViewComponent;
|
let component: GemensamPlaneringViewComponent;
|
||||||
@@ -14,7 +15,7 @@ describe('GemensamPlaneringViewComponent', () => {
|
|||||||
await TestBed.configureTestingModule({
|
await TestBed.configureTestingModule({
|
||||||
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
||||||
declarations: [GemensamPlaneringViewComponent, LayoutComponent],
|
declarations: [GemensamPlaneringViewComponent, LayoutComponent],
|
||||||
imports: [RouterTestingModule, HttpClientTestingModule],
|
imports: [RouterTestingModule, HttpClientTestingModule, ApmModule],
|
||||||
providers: [GemensamPlaneringViewService],
|
providers: [GemensamPlaneringViewService],
|
||||||
}).compileComponents();
|
}).compileComponents();
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ import { RouterTestingModule } from '@angular/router/testing';
|
|||||||
import { LayoutComponent } from '@msfa-shared/components/layout/layout.component';
|
import { LayoutComponent } from '@msfa-shared/components/layout/layout.component';
|
||||||
import { InformativRapportViewComponent } from './informativ-rapport-view.component';
|
import { InformativRapportViewComponent } from './informativ-rapport-view.component';
|
||||||
import { InformativRapportViewService } from './informativ-rapport-view.service';
|
import { InformativRapportViewService } from './informativ-rapport-view.service';
|
||||||
|
import { ApmModule } from '@elastic/apm-rum-angular';
|
||||||
|
|
||||||
describe('InformativRapportViewComponent', () => {
|
describe('InformativRapportViewComponent', () => {
|
||||||
let component: InformativRapportViewComponent;
|
let component: InformativRapportViewComponent;
|
||||||
@@ -14,7 +15,7 @@ describe('InformativRapportViewComponent', () => {
|
|||||||
await TestBed.configureTestingModule({
|
await TestBed.configureTestingModule({
|
||||||
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
||||||
declarations: [InformativRapportViewComponent, LayoutComponent],
|
declarations: [InformativRapportViewComponent, LayoutComponent],
|
||||||
imports: [RouterTestingModule, HttpClientTestingModule],
|
imports: [RouterTestingModule, ApmModule, HttpClientTestingModule],
|
||||||
providers: [InformativRapportViewService],
|
providers: [InformativRapportViewService],
|
||||||
}).compileComponents();
|
}).compileComponents();
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ import { RouterTestingModule } from '@angular/router/testing';
|
|||||||
import { LayoutComponent } from '@msfa-shared/components/layout/layout.component';
|
import { LayoutComponent } from '@msfa-shared/components/layout/layout.component';
|
||||||
import { PeriodiskRedovisningViewComponent } from './periodisk-redovisning-view.component';
|
import { PeriodiskRedovisningViewComponent } from './periodisk-redovisning-view.component';
|
||||||
import { PeriodiskRedovisningViewService } from './periodisk-redovisning-view.service';
|
import { PeriodiskRedovisningViewService } from './periodisk-redovisning-view.service';
|
||||||
|
import { ApmModule } from '@elastic/apm-rum-angular';
|
||||||
|
|
||||||
describe('GemensamPlaneringViewComponent', () => {
|
describe('GemensamPlaneringViewComponent', () => {
|
||||||
let component: PeriodiskRedovisningViewComponent;
|
let component: PeriodiskRedovisningViewComponent;
|
||||||
@@ -14,7 +15,7 @@ describe('GemensamPlaneringViewComponent', () => {
|
|||||||
await TestBed.configureTestingModule({
|
await TestBed.configureTestingModule({
|
||||||
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
||||||
declarations: [PeriodiskRedovisningViewComponent, LayoutComponent],
|
declarations: [PeriodiskRedovisningViewComponent, LayoutComponent],
|
||||||
imports: [RouterTestingModule, HttpClientTestingModule],
|
imports: [RouterTestingModule, HttpClientTestingModule, ApmModule],
|
||||||
providers: [PeriodiskRedovisningViewService],
|
providers: [PeriodiskRedovisningViewService],
|
||||||
}).compileComponents();
|
}).compileComponents();
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ import { RouterTestingModule } from '@angular/router/testing';
|
|||||||
import { LayoutComponent } from '@msfa-shared/components/layout/layout.component';
|
import { LayoutComponent } from '@msfa-shared/components/layout/layout.component';
|
||||||
import { SignalViewComponent } from './signal-view.component';
|
import { SignalViewComponent } from './signal-view.component';
|
||||||
import { SignalViewService } from './signal-view.service';
|
import { SignalViewService } from './signal-view.service';
|
||||||
|
import { ApmModule } from '@elastic/apm-rum-angular';
|
||||||
|
|
||||||
describe('InformativRapportViewComponent', () => {
|
describe('InformativRapportViewComponent', () => {
|
||||||
let component: SignalViewComponent;
|
let component: SignalViewComponent;
|
||||||
@@ -14,7 +15,7 @@ describe('InformativRapportViewComponent', () => {
|
|||||||
await TestBed.configureTestingModule({
|
await TestBed.configureTestingModule({
|
||||||
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
||||||
declarations: [SignalViewComponent, LayoutComponent],
|
declarations: [SignalViewComponent, LayoutComponent],
|
||||||
imports: [RouterTestingModule, HttpClientTestingModule],
|
imports: [RouterTestingModule, ApmModule, HttpClientTestingModule],
|
||||||
providers: [SignalViewService],
|
providers: [SignalViewService],
|
||||||
}).compileComponents();
|
}).compileComponents();
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ import { RouterTestingModule } from '@angular/router/testing';
|
|||||||
import { LayoutComponent } from '@msfa-shared/components/layout/layout.component';
|
import { LayoutComponent } from '@msfa-shared/components/layout/layout.component';
|
||||||
import { SlutredovisningViewComponent } from './slutredovisning-view.component';
|
import { SlutredovisningViewComponent } from './slutredovisning-view.component';
|
||||||
import { SlutredovisningViewService } from './slutredovisning-view.service';
|
import { SlutredovisningViewService } from './slutredovisning-view.service';
|
||||||
|
import { ApmModule } from '@elastic/apm-rum-angular';
|
||||||
|
|
||||||
describe('GemensamPlaneringViewComponent', () => {
|
describe('GemensamPlaneringViewComponent', () => {
|
||||||
let component: SlutredovisningViewComponent;
|
let component: SlutredovisningViewComponent;
|
||||||
@@ -14,7 +15,7 @@ describe('GemensamPlaneringViewComponent', () => {
|
|||||||
await TestBed.configureTestingModule({
|
await TestBed.configureTestingModule({
|
||||||
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
||||||
declarations: [SlutredovisningViewComponent, LayoutComponent],
|
declarations: [SlutredovisningViewComponent, LayoutComponent],
|
||||||
imports: [RouterTestingModule, HttpClientTestingModule],
|
imports: [RouterTestingModule, HttpClientTestingModule, ApmModule],
|
||||||
providers: [SlutredovisningViewService],
|
providers: [SlutredovisningViewService],
|
||||||
}).compileComponents();
|
}).compileComponents();
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
|
|||||||
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
|
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
|
||||||
import { RouterTestingModule } from '@angular/router/testing';
|
import { RouterTestingModule } from '@angular/router/testing';
|
||||||
import { MyAccountComponent } from './my-account.component';
|
import { MyAccountComponent } from './my-account.component';
|
||||||
|
import { ApmModule } from '@elastic/apm-rum-angular';
|
||||||
|
|
||||||
describe('MyAccountComponent', () => {
|
describe('MyAccountComponent', () => {
|
||||||
let component: MyAccountComponent;
|
let component: MyAccountComponent;
|
||||||
@@ -13,7 +14,7 @@ describe('MyAccountComponent', () => {
|
|||||||
void TestBed.configureTestingModule({
|
void TestBed.configureTestingModule({
|
||||||
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
||||||
declarations: [MyAccountComponent],
|
declarations: [MyAccountComponent],
|
||||||
imports: [HttpClientTestingModule, RouterTestingModule],
|
imports: [HttpClientTestingModule, ApmModule, RouterTestingModule],
|
||||||
}).compileComponents();
|
}).compileComponents();
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
|
|||||||
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||||
import { RouterTestingModule } from '@angular/router/testing';
|
import { RouterTestingModule } from '@angular/router/testing';
|
||||||
import { OrganizationPickerComponent } from './organization-picker.component';
|
import { OrganizationPickerComponent } from './organization-picker.component';
|
||||||
|
import { ApmModule } from '@elastic/apm-rum-angular';
|
||||||
|
|
||||||
describe('OrganizationPickerComponent', () => {
|
describe('OrganizationPickerComponent', () => {
|
||||||
let component: OrganizationPickerComponent;
|
let component: OrganizationPickerComponent;
|
||||||
@@ -10,7 +11,7 @@ describe('OrganizationPickerComponent', () => {
|
|||||||
|
|
||||||
beforeEach(async () => {
|
beforeEach(async () => {
|
||||||
await TestBed.configureTestingModule({
|
await TestBed.configureTestingModule({
|
||||||
imports: [HttpClientTestingModule, RouterTestingModule],
|
imports: [HttpClientTestingModule, ApmModule, RouterTestingModule],
|
||||||
declarations: [OrganizationPickerComponent],
|
declarations: [OrganizationPickerComponent],
|
||||||
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
||||||
}).compileComponents();
|
}).compileComponents();
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
|
|||||||
import { RouterTestingModule } from '@angular/router/testing';
|
import { RouterTestingModule } from '@angular/router/testing';
|
||||||
import { StartComponent } from './start.component';
|
import { StartComponent } from './start.component';
|
||||||
import { StartService } from './start.service';
|
import { StartService } from './start.service';
|
||||||
|
import { ApmModule } from '@elastic/apm-rum-angular';
|
||||||
|
|
||||||
describe('StartComponent', () => {
|
describe('StartComponent', () => {
|
||||||
let component: StartComponent;
|
let component: StartComponent;
|
||||||
@@ -14,7 +15,7 @@ describe('StartComponent', () => {
|
|||||||
void TestBed.configureTestingModule({
|
void TestBed.configureTestingModule({
|
||||||
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
||||||
declarations: [StartComponent],
|
declarations: [StartComponent],
|
||||||
imports: [RouterTestingModule, HttpClientTestingModule],
|
imports: [RouterTestingModule, ApmModule, HttpClientTestingModule],
|
||||||
providers: [StartService],
|
providers: [StartService],
|
||||||
}).compileComponents();
|
}).compileComponents();
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ import { HttpClientTestingModule } from '@angular/common/http/testing';
|
|||||||
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
|
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
|
||||||
import { RouterTestingModule } from '@angular/router/testing';
|
import { RouterTestingModule } from '@angular/router/testing';
|
||||||
import { LayoutComponent } from './Layout.component';
|
import { LayoutComponent } from './Layout.component';
|
||||||
|
import { ApmModule } from '@elastic/apm-rum-angular';
|
||||||
|
|
||||||
describe('LayoutComponent', () => {
|
describe('LayoutComponent', () => {
|
||||||
let component: LayoutComponent;
|
let component: LayoutComponent;
|
||||||
@@ -11,7 +12,7 @@ describe('LayoutComponent', () => {
|
|||||||
waitForAsync(() => {
|
waitForAsync(() => {
|
||||||
void TestBed.configureTestingModule({
|
void TestBed.configureTestingModule({
|
||||||
declarations: [LayoutComponent],
|
declarations: [LayoutComponent],
|
||||||
imports: [RouterTestingModule, HttpClientTestingModule],
|
imports: [RouterTestingModule, ApmModule, HttpClientTestingModule],
|
||||||
}).compileComponents();
|
}).compileComponents();
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
|
import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
|
||||||
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||||
import { MultiselectComponent } from './multiselect.component';
|
import { MultiselectComponent } from './multiselect.component';
|
||||||
import { DropdownModule } from '@ui/dropdown/dropdown.module';
|
import { UiMultiselectModule } from '@ui/multiselect/multiselect.module';
|
||||||
|
|
||||||
describe('MultiselectComponent', () => {
|
describe('MultiselectComponent', () => {
|
||||||
let component: MultiselectComponent;
|
let component: MultiselectComponent;
|
||||||
@@ -9,7 +9,7 @@ describe('MultiselectComponent', () => {
|
|||||||
|
|
||||||
beforeEach(async () => {
|
beforeEach(async () => {
|
||||||
await TestBed.configureTestingModule({
|
await TestBed.configureTestingModule({
|
||||||
imports: [DropdownModule],
|
imports: [UiMultiselectModule],
|
||||||
declarations: [MultiselectComponent],
|
declarations: [MultiselectComponent],
|
||||||
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
||||||
}).compileComponents();
|
}).compileComponents();
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
|
import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
|
||||||
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||||
import { UiPopoverComponent } from './ui-popover.component';
|
import { UiPopoverComponent } from './ui-popover.component';
|
||||||
import { DropdownModule } from '@ui/dropdown/dropdown.module';
|
import { UiPopoverModule } from '@ui/popover/ui-popover.module';
|
||||||
|
|
||||||
describe('popoverComponent', () => {
|
describe('popoverComponent', () => {
|
||||||
let component: UiPopoverComponent;
|
let component: UiPopoverComponent;
|
||||||
@@ -9,7 +9,7 @@ describe('popoverComponent', () => {
|
|||||||
|
|
||||||
beforeEach(async () => {
|
beforeEach(async () => {
|
||||||
await TestBed.configureTestingModule({
|
await TestBed.configureTestingModule({
|
||||||
imports: [DropdownModule],
|
imports: [UiPopoverModule],
|
||||||
declarations: [UiPopoverComponent],
|
declarations: [UiPopoverComponent],
|
||||||
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
||||||
}).compileComponents();
|
}).compileComponents();
|
||||||
|
|||||||
Reference in New Issue
Block a user