Skip to content

Commit

Permalink
Removed Code Coverage disable lines
Browse files Browse the repository at this point in the history
  • Loading branch information
aadhil2k4 committed Dec 28, 2024
1 parent c3b509a commit 7241fa9
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/screens/OrganizationEvents/OrganizationEvents.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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,
});
}
Expand All @@ -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) {
Expand Down

0 comments on commit 7241fa9

Please sign in to comment.