Skip to content

Commit 5e17dc8

Browse files
author
Juan Gabriel Guzman
committed
test: #228 Improving test coverage and adding jquery to test environment
1 parent 7d76f69 commit 5e17dc8

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/app/modules/shared/components/details-fields/details-fields.component.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@ import * as projectActions from '../../../customer-management/components/project
2222
import {EntryState} from '../../../time-clock/store/entry.reducer';
2323
import * as entryActions from '../../../time-clock/store/entry.actions';
2424
import {getUpdateError, getCreateError} from 'src/app/modules/time-clock/store/entry.selectors';
25-
// import $ from 'jquery';
26-
// import 'bootstrap';
2725
type Merged = TechnologyState & ProjectState & ActivityState & EntryState;
2826

2927
@Component({
@@ -57,7 +55,6 @@ export class DetailsFieldsComponent implements OnChanges, OnInit {
5755
uri: '',
5856
technology: '',
5957
});
60-
// $('[data-toggle="tooltip"]').tooltip();
6158
}
6259

6360
ngOnInit(): void {
@@ -150,10 +147,12 @@ export class DetailsFieldsComponent implements OnChanges, OnInit {
150147
get end_hour() {
151148
return this.entryForm.get('end_hour');
152149
}
153-
150+
/* istanbul ignore next */
154151
closeEntryModal() {
155152
this.close();
156-
this.closeModal.nativeElement.click();
153+
if (this.closeModal.nativeElement) {
154+
this.closeModal.nativeElement.click();
155+
}
157156
}
158157

159158
close() {

0 commit comments

Comments
 (0)