Fixed a Small Error and Updated/Added Tests

This commit is contained in:
Ahmad 2024-12-29 18:50:54 -05:00
parent 4f205d7584
commit 3a095e2096
No known key found for this signature in database
GPG key ID: 8FD8A93530D182BF
9 changed files with 105 additions and 14 deletions

View file

@ -8,6 +8,7 @@ describe('Home', () => {
const { container } = render(<Page />);
expect(container).toMatchSnapshot();
});
it('renders a heading', () => {
render(<Page />);
@ -15,4 +16,12 @@ describe('Home', () => {
expect(heading).toBeInTheDocument();
});
it('renders a get started button', () => {
render(<Page />);
const link = screen.getByRole('link', { name: /get tasko for free/i });
expect(link).toBeInTheDocument();
});
});