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 3a31ba8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 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(/nick@novana.nl/i);

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

expect(heading).toBeInTheDocument();
expect(email).toBeInTheDocument();
});
});
4 changes: 0 additions & 4 deletions src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,6 @@ export default function HomePage() {
<FaWhatsapp className='text-emerald-500 hover:text-emerald-200 w-6 h-6' />
</a>
</div>
<div className='flex items-center'>
<FaEnvelope className='mr-2 text-primary-400' />
[email protected]
</div>
<div className='flex items-center'>
<FaBuilding className='mr-2 text-primary-400' />
<p>
Expand Down

0 comments on commit 3a31ba8

Please sign in to comment.