Skip to content

Commit

Permalink
fix(web): tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ixahmedxi committed Jul 2, 2023
1 parent 5f5cb39 commit 8d1d4a9
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 138 deletions.
54 changes: 0 additions & 54 deletions apps/web/src/tests/home.authed.spec.tsx

This file was deleted.

28 changes: 0 additions & 28 deletions apps/web/src/tests/home.loading.spec.tsx

This file was deleted.

56 changes: 0 additions & 56 deletions apps/web/src/tests/home.nonauth.spec.tsx

This file was deleted.

14 changes: 14 additions & 0 deletions apps/web/src/tests/home.spec.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { render, screen } from '@noodle/test-utils/renderer';

import Home from '@/pages';

describe('Home page', () => {
it('should render the title and description', () => {
render(<Home />);

expect(screen.getByText('Noodle')).toBeInTheDocument();
expect(
screen.getByText(/rethinking student productivity/i),
).toBeInTheDocument();
});
});

0 comments on commit 8d1d4a9

Please sign in to comment.