From 7c0b51f4bc60acb165d6c21f6bfa38062e932323 Mon Sep 17 00:00:00 2001 From: Sandro Castillo Date: Wed, 24 Feb 2021 16:57:16 -0500 Subject: [PATCH] fix: TT-149 rename tests --- .../details-fields/details-fields.component.spec.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/app/modules/shared/components/details-fields/details-fields.component.spec.ts b/src/app/modules/shared/components/details-fields/details-fields.component.spec.ts index b8a0d9abf..a29ed6e06 100644 --- a/src/app/modules/shared/components/details-fields/details-fields.component.spec.ts +++ b/src/app/modules/shared/components/details-fields/details-fields.component.spec.ts @@ -443,7 +443,7 @@ describe('DetailsFieldsComponent', () => { expect(component.projectSelected.emit).toHaveBeenCalledWith(data); }); - it('on Selected Start Date should change End Date', () => { + it('on selected start_date should change end_date', () => { const expectedStartDate = '2020-02-05'; component.onStartDateChange(expectedStartDate); @@ -453,7 +453,7 @@ describe('DetailsFieldsComponent', () => { expect(endDateInput.value).toEqual(expectedStartDate); }); - it('on Selected End Date should not change Start Date', () => { + it('on selected end_date should not change start_date', () => { const expectedStartDate = '2020-02-05'; const expectedEndDate = '2020-02-06'; @@ -468,8 +468,6 @@ describe('DetailsFieldsComponent', () => { expect(endDateInput.value).not.toEqual(startDateInput.value); expect(startDateInput.value).toEqual(expectedStartDate); }); - - /* TODO As part of https://github.com/ioet/time-tracker-ui/issues/424 a new parameter was added to the details-field-component, and now these couple of tests are failing. A solution to this error might be generate a Test Wrapper Component. More details here: