From 7241fa98d235408e6e6262ae8d79a4eb81583652 Mon Sep 17 00:00:00 2001 From: Aadhil Ahamed Date: Sun, 29 Dec 2024 00:24:53 +0530 Subject: [PATCH] Removed Code Coverage disable lines --- src/screens/OrganizationEvents/OrganizationEvents.tsx | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/screens/OrganizationEvents/OrganizationEvents.tsx b/src/screens/OrganizationEvents/OrganizationEvents.tsx index 302e1d590b..5236743511 100644 --- a/src/screens/OrganizationEvents/OrganizationEvents.tsx +++ b/src/screens/OrganizationEvents/OrganizationEvents.tsx @@ -101,7 +101,6 @@ function organizationEvents(): JSX.Element { setCreateEventmodalisOpen(false); }; const handleChangeView = (item: string | null): void => { - /*istanbul ignore next*/ if (item) { setViewType(item as ViewType); } @@ -221,7 +220,6 @@ function organizationEvents(): JSX.Element { setEndDate(new Date()); } } catch (error: unknown) { - /* istanbul ignore next */ if (error instanceof Error) { console.log(error.message); errorHandler(t, error); @@ -386,18 +384,14 @@ function organizationEvents(): JSX.Element { className={styles.dateboxOrganizationEvents} timeSteps={{ hours: 1, minutes: 1, seconds: 1 }} value={timeToDayJs(formState.startTime)} - /*istanbul ignore next*/ onChange={(time): void => { if (time) { setFormState({ ...formState, startTime: time?.format('HH:mm:ss'), endTime: - /*istanbul ignore next*/ timeToDayJs(formState.endTime) < time - ? /* istanbul ignore next */ time?.format( - 'HH:mm:ss', - ) + ? time?.format('HH:mm:ss') : formState.endTime, }); } @@ -410,7 +404,6 @@ function organizationEvents(): JSX.Element { label={tCommon('endTime')} className={styles.dateboxOrganizationEvents} timeSteps={{ hours: 1, minutes: 1, seconds: 1 }} - /*istanbul ignore next*/ value={timeToDayJs(formState.endTime)} onChange={(time): void => { if (time) {