From 507f2d22898837c7fef525bdc7c5a437d2ec955c Mon Sep 17 00:00:00 2001 From: Mustafa BOLEKEN Date: Mon, 30 Dec 2024 02:35:12 +0300 Subject: [PATCH] Create VideoCard.test.js --- .../Components/Cards/VideoCard.test.js | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 react/src/__tests__/Components/Cards/VideoCard.test.js diff --git a/react/src/__tests__/Components/Cards/VideoCard.test.js b/react/src/__tests__/Components/Cards/VideoCard.test.js new file mode 100644 index 00000000..1e8b2a98 --- /dev/null +++ b/react/src/__tests__/Components/Cards/VideoCard.test.js @@ -0,0 +1,44 @@ +import React from 'react'; +import { render } from '@testing-library/react'; +import theme from "styles/theme"; +import { ThemeProvider } from '@mui/material/styles'; +import {ThemeList} from "styles/themeList"; +import VideoCard from "../../../Components/Cards/VideoCard"; + +describe('VideoCard Component', () => { + + beforeEach(() => { + // Reset the mock implementation before each test + jest.clearAllMocks(); + }); + + it('renders without crashing', () => { + render( + + + + ); + }); + +});