Skip to content

Commit 4cde6a8

Browse files
VIA-630 Refactor: change ternary operator to if/else statement (eslint)
1 parent d7478eb commit 4cde6a8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/app/check-and-book-vaccinations/page.test.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,11 @@ describe("Vaccination Hub Page", () => {
9494

9595
const pregnancyHubContent: HTMLElement | null = screen.queryByTestId("pregnancy-hub-content");
9696

97-
shouldShowPregnancyContent ? expect(pregnancyHubContent).toBeVisible() : expect(pregnancyHubContent).toBeNull();
97+
if (shouldShowPregnancyContent) {
98+
expect(pregnancyHubContent).toBeVisible();
99+
} else {
100+
expect(pregnancyHubContent).toBeNull();
101+
}
98102
});
99103
});
100104
});

0 commit comments

Comments
 (0)