2024-08-19 23:07:49 +00:00
|
|
|
import React from 'react';
|
|
|
|
import { render, screen } from '@testing-library/react';
|
2024-08-20 16:10:01 +00:00
|
|
|
import Dashboard from './Dashboard';
|
2024-08-19 23:07:49 +00:00
|
|
|
|
|
|
|
test('renders learn react link', () => {
|
2024-08-20 16:10:01 +00:00
|
|
|
render(<Dashboard />);
|
2024-08-19 23:07:49 +00:00
|
|
|
const linkElement = screen.getByText(/learn react/i);
|
|
|
|
expect(linkElement).toBeInTheDocument();
|
|
|
|
});
|