Skip to content

Commit

Permalink
fix: check for something that is actually in the dom
Browse files Browse the repository at this point in the history
  • Loading branch information
nicknijenhuis committed Jan 13, 2024
1 parent f15a816 commit c7be6c9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/__tests__/pages/HomePage.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@ import HomePage from '@/app/page';
describe('Homepage', () => {
it('renders the Components', () => {
render(<HomePage />);
const email = screen.getByText(/mailto:nick@novana.nl/i);

const heading = screen.getByText(/Novana/i);

expect(heading).toBeInTheDocument();
expect(email).toBeInTheDocument();
});
});

0 comments on commit c7be6c9

Please sign in to comment.