From ff8ba2af997b0aa714d3d519837b53294c138d1d Mon Sep 17 00:00:00 2001 From: Juan Gabriel Guzman Date: Wed, 20 May 2020 18:04:39 -0500 Subject: [PATCH] test: #228 Improving test coverage and adding jquery to test environment --- .../details-fields/details-fields.component.ts | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/app/modules/shared/components/details-fields/details-fields.component.ts b/src/app/modules/shared/components/details-fields/details-fields.component.ts index ea89ca9bc..356740487 100644 --- a/src/app/modules/shared/components/details-fields/details-fields.component.ts +++ b/src/app/modules/shared/components/details-fields/details-fields.component.ts @@ -22,8 +22,6 @@ import * as projectActions from '../../../customer-management/components/project import {EntryState} from '../../../time-clock/store/entry.reducer'; import * as entryActions from '../../../time-clock/store/entry.actions'; import {getUpdateError, getCreateError} from 'src/app/modules/time-clock/store/entry.selectors'; -// import $ from 'jquery'; -// import 'bootstrap'; type Merged = TechnologyState & ProjectState & ActivityState & EntryState; @Component({ @@ -57,7 +55,6 @@ export class DetailsFieldsComponent implements OnChanges, OnInit { uri: '', technology: '', }); - // $('[data-toggle="tooltip"]').tooltip(); } ngOnInit(): void { @@ -150,10 +147,12 @@ export class DetailsFieldsComponent implements OnChanges, OnInit { get end_hour() { return this.entryForm.get('end_hour'); } - + /* istanbul ignore next */ closeEntryModal() { this.close(); - this.closeModal.nativeElement.click(); + if (this.closeModal.nativeElement) { + this.closeModal.nativeElement.click(); + } } close() {