From 5d8826a00b8cafdbad57055c61995bd2b6c0b75c Mon Sep 17 00:00:00 2001 From: rmroot Date: Tue, 5 Nov 2024 08:36:50 -0600 Subject: [PATCH] all tests passing --- .../kpm-database-modal.component.spec.ts | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/app/setup-wizard/pre-visit/company-kpi-details/kpm-database-modal/kpm-database-modal.component.spec.ts b/src/app/setup-wizard/pre-visit/company-kpi-details/kpm-database-modal/kpm-database-modal.component.spec.ts index 4b82a627..5dff4684 100644 --- a/src/app/setup-wizard/pre-visit/company-kpi-details/kpm-database-modal/kpm-database-modal.component.spec.ts +++ b/src/app/setup-wizard/pre-visit/company-kpi-details/kpm-database-modal/kpm-database-modal.component.spec.ts @@ -1,6 +1,9 @@ import { ComponentFixture, TestBed } from '@angular/core/testing'; import { KpmDatabaseModalComponent } from './kpm-database-modal.component'; +import { FontAwesomeModule } from '@fortawesome/angular-fontawesome'; +import { getNewKeyPerformanceIndicator } from 'src/app/models/keyPerformanceIndicator'; +import { KeyPerformanceIndicatorOption } from 'src/app/shared/constants/keyPerformanceIndicatorOptions'; describe('KpmDatabaseModalComponent', () => { let component: KpmDatabaseModalComponent; @@ -8,12 +11,20 @@ describe('KpmDatabaseModalComponent', () => { beforeEach(async () => { await TestBed.configureTestingModule({ + imports: [FontAwesomeModule], declarations: [KpmDatabaseModalComponent] }) - .compileComponents(); + .compileComponents(); fixture = TestBed.createComponent(KpmDatabaseModalComponent); component = fixture.componentInstance; + let tmpIndicatorOption: KeyPerformanceIndicatorOption = { + primaryKPI: 'Operations', + label: '', + htmlLabel: '', + optionValue: 'chemicalEmissions' + } + component.keyPerformanceIndicator = getNewKeyPerformanceIndicator('', '', tmpIndicatorOption, false) fixture.detectChanges(); });