Skip to content

Commit

Permalink
This is the Unit Test for the Donation Page (#378)
Browse files Browse the repository at this point in the history
  • Loading branch information
kaimanasse15 authored May 22, 2024
1 parent a7e58bb commit c406b84
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/unit/donation-info/page.test.tsx
Original file line number Diff line number Diff line change
@@ -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(<DonationInfo />);
expect(screen.getByRole('heading')).toBeInTheDocument();
expect(screen.getByText('Donation Info')).toBeInTheDocument();
expect(screen.getByRole('heading')).toHaveStyle({ color: 'white' });
});
});

0 comments on commit c406b84

Please sign in to comment.