Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
mehdi-torabiv committed Jul 10, 2024
1 parent ec62657 commit 8098007
Showing 1 changed file with 9 additions and 0 deletions.
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';
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 8098007

Please sign in to comment.