Skip to content

Commit

Permalink
update unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
mehdi-torabiv committed Jul 9, 2024
1 parent 1029ddf commit 7932c41
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/App.spec.tsx

This file was deleted.

9 changes: 9 additions & 0 deletions src/pages/Dashboard/Dashboard.spec.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import React from 'react';

Check failure on line 1 in src/pages/Dashboard/Dashboard.spec.tsx

View workflow job for this annotation

GitHub Actions / test/node 18/ubuntu-latest

'React' is declared but its value is never read.

Check failure on line 1 in src/pages/Dashboard/Dashboard.spec.tsx

View workflow job for this annotation

GitHub Actions / test/node 18/ubuntu-latest

'React' is declared but its value is never read.

Check failure on line 1 in src/pages/Dashboard/Dashboard.spec.tsx

View workflow job for this annotation

GitHub Actions / test/node 17/ubuntu-latest

'React' is declared but its value is never read.
import { render, screen } from '@testing-library/react';
import { Dashboard } from './Dashboard';

test('renders Dashboard text', () => {
render(<Dashboard />);
const dashboardElement = screen.getByText(/dashboard/i);
expect(dashboardElement).toBeInTheDocument();
});

0 comments on commit 7932c41

Please sign in to comment.