@@ -517,32 +517,6 @@ describe('DetailsFieldsComponent', () => {
517517 expect ( component . projectSelected . emit ) . toHaveBeenCalledWith ( data ) ;
518518 } ) ;
519519
520- it ( 'on selected start_date should change end_date' , ( ) => {
521- const expectedStartDate = '2020-02-05' ;
522-
523- component . onStartDateChange ( expectedStartDate ) ;
524- fixture . detectChanges ( ) ;
525- const endDateInput : HTMLInputElement = fixture . debugElement . nativeElement . querySelector ( '#end_date' ) ;
526-
527- expect ( endDateInput . value ) . toEqual ( expectedStartDate ) ;
528- } ) ;
529-
530- it ( 'on selected end_date should not change start_date' , ( ) => {
531- const expectedStartDate = '2020-02-05' ;
532- const expectedEndDate = '2020-02-06' ;
533-
534- component . ngOnInit ( ) ;
535- fixture . detectChanges ( ) ;
536- const startDateInput : HTMLInputElement = fixture . debugElement . nativeElement . querySelector ( '#start_date' ) ;
537- const endDateInput : HTMLInputElement = fixture . debugElement . nativeElement . querySelector ( '#end_date' ) ;
538- startDateInput . value = expectedStartDate ;
539- endDateInput . value = expectedEndDate ;
540- endDateInput . dispatchEvent ( new Event ( '#end_date' ) ) ;
541-
542- expect ( endDateInput . value ) . not . toEqual ( startDateInput . value ) ;
543- expect ( startDateInput . value ) . toEqual ( expectedStartDate ) ;
544- } ) ;
545-
546520 it ( 'on get current date should return expected date' , ( ) => {
547521 const expectedDate = moment ( new Date ( ) ) . format ( DATE_FORMAT_YEAR ) ;
548522
@@ -560,15 +534,6 @@ describe('DetailsFieldsComponent', () => {
560534 expect ( startDateInput . max ) . toEqual ( expectedDate ) ;
561535 } ) ;
562536
563- it ( 'on the input with id #end_date we could get the current Date ' , ( ) => {
564- fixture . detectChanges ( ) ;
565- const expectedDate = moment ( new Date ( ) ) . format ( DATE_FORMAT_YEAR ) ;
566- const endDateInput = fixture . debugElement . nativeElement . querySelector ( '[id=end_date]' ) ;
567-
568- expect ( endDateInput . id ) . toEqual ( 'end_date' ) ;
569- expect ( endDateInput . max ) . toEqual ( expectedDate ) ;
570- } ) ;
571-
572537 const diffParams = [
573538 {
574539 case : 'positive should return correctly diff' ,
0 commit comments