From 80980079dc73ec7d92f7e542fe96972a778611f6 Mon Sep 17 00:00:00 2001 From: mehditorabiv Date: Thu, 11 Jul 2024 01:33:37 +0300 Subject: [PATCH] add test --- src/pages/Dashboard/Dashboard.spec.tsx | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 src/pages/Dashboard/Dashboard.spec.tsx diff --git a/src/pages/Dashboard/Dashboard.spec.tsx b/src/pages/Dashboard/Dashboard.spec.tsx new file mode 100644 index 0000000..0efc3b2 --- /dev/null +++ b/src/pages/Dashboard/Dashboard.spec.tsx @@ -0,0 +1,9 @@ +import React from 'react'; +import { render, screen } from '@testing-library/react'; +import { Dashboard } from './Dashboard'; + +test('renders Dashboard text', () => { + render(); + const dashboardElement = screen.getByText(/dashboard/i); + expect(dashboardElement).toBeInTheDocument(); +});