Skip to content

Commit

Permalink
all tests passing
Browse files Browse the repository at this point in the history
  • Loading branch information
rmroot committed Nov 5, 2024
1 parent bd3d04e commit 5d8826a
Showing 1 changed file with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,19 +1,30 @@
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;
let fixture: ComponentFixture<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();
});

Expand Down

0 comments on commit 5d8826a

Please sign in to comment.