diff --git a/src/App.spec.tsx b/src/App.spec.tsx deleted file mode 100644 index 35fd460..0000000 --- a/src/App.spec.tsx +++ /dev/null @@ -1,9 +0,0 @@ -import React from "react"; -import { render, screen } from "@testing-library/react"; -import App from "./App"; - -test("renders test text", () => { - render(); - const linkElement = screen.getByText(/test/i); - expect(linkElement).toBeInTheDocument(); -}); diff --git a/src/pages/Dashboard/Dashboard.spec.tsx b/src/pages/Dashboard/Dashboard.spec.tsx new file mode 100644 index 0000000..1f03b10 --- /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(); +});