Skip to content

Commit

Permalink
Updated tests
Browse files Browse the repository at this point in the history
  • Loading branch information
BobsProgrammingAcademy committed Mar 10, 2024
1 parent fce7c37 commit 8a96653
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions frontend/src/tests/Home.test.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,22 @@
import axios from 'axios';
import { render, screen } from '@testing-library/react';
import userEvent from '@testing-library/user-event';

import About from '../components/About';

const renderApp = () => {
render(<About />);

return { user: userEvent.setup() };
};

describe('Dashboard page', () => {
it('should render the Dashboard page header', async () => {
renderApp();

expect(await screen.findByText(/About/i)).toBeVisible();
});
});

describe('Home page', () => {
beforeAll(() => {
Expand Down

0 comments on commit 8a96653

Please sign in to comment.