From c246c41957a026cc0232d4de385cccc7b76c8ab7 Mon Sep 17 00:00:00 2001 From: abhishek Date: Tue, 17 Dec 2024 13:23:43 +0530 Subject: [PATCH] Fix: Make dates dynamic for Vitest compatibility with DatePicker --- src/screens/UserPortal/Events/Events.spec.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/screens/UserPortal/Events/Events.spec.tsx b/src/screens/UserPortal/Events/Events.spec.tsx index dc0c938e92..646f5052f0 100644 --- a/src/screens/UserPortal/Events/Events.spec.tsx +++ b/src/screens/UserPortal/Events/Events.spec.tsx @@ -448,8 +448,8 @@ describe('Testing Events Screen [User Portal]', () => { userEvent.click(screen.getByTestId('createEventModalBtn')); // MM/DD/YYYY - const startDate = '12/15/2024'; - const endDate = '12/15/2024'; + const startDate = new Date(); + const endDate = new Date(); const startTime = '08:00 AM'; const endTime = '10:00 AM';