@@ -469,29 +469,29 @@ describe('DetailsFieldsComponent', () => {
469469 expect ( startDateInput . value ) . toEqual ( expectedStartDate ) ;
470470 } ) ;
471471
472- it ( 'on get actual date should return the current date' , ( ) => {
473- const actualDateExpected = new Date ( ) . toISOString ( ) . split ( 'T' ) [ 0 ] ;
472+ it ( 'on get current date should return expected date' , ( ) => {
473+ const expectedDate = new Date ( ) . toISOString ( ) . split ( 'T' ) [ 0 ] ;
474474
475- expect ( component . getCurrentDate ( ) ) . toEqual ( actualDateExpected ) ;
475+ expect ( component . getCurrentDate ( ) ) . toEqual ( expectedDate ) ;
476476 } ) ;
477477
478478 it ( 'on the input with id #start_date we could get the id and max value' , ( ) => {
479479 fixture . detectChanges ( ) ;
480- const expectDate = new Date ( ) . toISOString ( ) . split ( 'T' ) [ 0 ] ;
481- const slectInput : HTMLInputElement = fixture . debugElement .
480+ const expectedDate = new Date ( ) . toISOString ( ) . split ( 'T' ) [ 0 ] ;
481+ const startDateInput : HTMLInputElement = fixture . debugElement .
482482 nativeElement . querySelector ( `input[id="start_date"],input[max="${ component . getCurrentDate ( ) } "]` ) ;
483483
484- expect ( slectInput . id ) . toEqual ( 'start_date' ) ;
485- expect ( slectInput . max ) . toEqual ( expectDate ) ;
484+ expect ( startDateInput . id ) . toEqual ( 'start_date' ) ;
485+ expect ( startDateInput . max ) . toEqual ( expectedDate ) ;
486486 } ) ;
487487
488488 it ( 'on the input with id #end_date we could get the current Date ' , ( ) => {
489489 fixture . detectChanges ( ) ;
490- const expectDate = new Date ( ) . toISOString ( ) . split ( 'T' ) [ 0 ] ;
491- const slectInput = fixture . debugElement . nativeElement . querySelector ( '[id=end_date]' ) ;
490+ const expectedDate = new Date ( ) . toISOString ( ) . split ( 'T' ) [ 0 ] ;
491+ const endDateInput = fixture . debugElement . nativeElement . querySelector ( '[id=end_date]' ) ;
492492
493- expect ( slectInput . id ) . toEqual ( 'end_date' ) ;
494- expect ( slectInput . max ) . toEqual ( expectDate ) ;
493+ expect ( endDateInput . id ) . toEqual ( 'end_date' ) ;
494+ expect ( endDateInput . max ) . toEqual ( expectedDate ) ;
495495 } ) ;
496496 /*
497497 TODO As part of https://github.com/ioet/time-tracker-ui/issues/424 a new parameter was added to the details-field-component,
0 commit comments