From c406b84f2f9faaa8f5fed7fecfaafb5e304d4e6f Mon Sep 17 00:00:00 2001 From: kaimanasse15 <91504156+kaimanasse15@users.noreply.github.com> Date: Wed, 22 May 2024 00:04:19 -0400 Subject: [PATCH] This is the Unit Test for the Donation Page (#378) --- tests/unit/donation-info/page.test.tsx | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 tests/unit/donation-info/page.test.tsx diff --git a/tests/unit/donation-info/page.test.tsx b/tests/unit/donation-info/page.test.tsx new file mode 100644 index 00000000..bcf6bf46 --- /dev/null +++ b/tests/unit/donation-info/page.test.tsx @@ -0,0 +1,12 @@ +import React from 'react'; +import { render, screen } from '@testing-library/react'; +import DonationInfo from '@/app/donation-info/page'; + +describe('DonationInfo component', () => { + it('renders correctly', () => { + render(); + expect(screen.getByRole('heading')).toBeInTheDocument(); + expect(screen.getByText('Donation Info')).toBeInTheDocument(); + expect(screen.getByRole('heading')).toHaveStyle({ color: 'white' }); + }); +}); \ No newline at end of file