From a47610f70107b525b76aef73c7959c1ae6109cbf Mon Sep 17 00:00:00 2001 From: dtkiriella Date: Mon, 8 Jan 2024 05:12:29 +0530 Subject: [PATCH] Edit Movies Upcoming Added Edit Movies Upcoming --- client/component.test.js | 34 +++ client/form.test.js | 32 +++ client/pages.test.js | 33 +++ client/route.test.js | 25 +++ client/src/App.jsx | 2 +- client/src/Routes/Admin.jsx | 2 + .../Admin-Movie-Items/Admin-Upcoming-Item.jsx | 2 +- client/src/helpers/Admin_Booking_Data.jsx | 74 ++----- .../pages/Admin/Admin_Edit_UpcomingMovies.jsx | 196 +++++++++++++++++- client/src/pages/Admin/Movie_Data.json | 14 +- .../src/pages/Admin/Movie_Data_Upcoming.json | 13 ++ client/src/pages/Profile/Booking.json | 26 +-- client/src/pages/Profile/BookingHistory.jsx | 6 +- 13 files changed, 358 insertions(+), 101 deletions(-) create mode 100644 client/component.test.js create mode 100644 client/form.test.js create mode 100644 client/pages.test.js create mode 100644 client/route.test.js create mode 100644 client/src/pages/Admin/Movie_Data_Upcoming.json diff --git a/client/component.test.js b/client/component.test.js new file mode 100644 index 0000000..d1b79fd --- /dev/null +++ b/client/component.test.js @@ -0,0 +1,34 @@ +import { render, screen, describe, test, expect } from '@testing-library/react'; +import Navbar from './Navbar'; +import Footer from './Footer'; +import Admin from './Admin'; +import Register from './Register'; +import Login from './Login'; + +describe('Component Tests', () => { + test('renders Navbar component', () => { + render(); + expect(screen.getByText('Navbar Text')).toBeInTheDocument(); + }); + + test('renders Footer component', () => { + render(