From 48f77995b075743da6807170581cd846a8bc7e79 Mon Sep 17 00:00:00 2001 From: duplixx <90516956+duplixx@users.noreply.github.com> Date: Sun, 10 Nov 2024 20:23:58 +0530 Subject: [PATCH] added orgs testcases --- .../OrganizationSidebar.test.tsx | 5 ++-- .../OrganizationDashboardMocks.ts | 26 +++++++++++++++++++ 2 files changed, 29 insertions(+), 2 deletions(-) diff --git a/src/components/UserPortal/OrganizationSidebar/OrganizationSidebar.test.tsx b/src/components/UserPortal/OrganizationSidebar/OrganizationSidebar.test.tsx index c08240462a..cddac285fd 100644 --- a/src/components/UserPortal/OrganizationSidebar/OrganizationSidebar.test.tsx +++ b/src/components/UserPortal/OrganizationSidebar/OrganizationSidebar.test.tsx @@ -31,13 +31,14 @@ const MOCKS = [ _id: 1, title: 'Event', description: 'Event Test', - startDate: '', - endDate: '', + startDate: '2024-01-01', + endDate: '2024-01-02', location: 'New Delhi', startTime: '02:00', endTime: '06:00', allDay: false, recurring: false, + attendees: [], recurrenceRule: null, isRecurringEventException: false, isPublic: true, diff --git a/src/screens/OrganizationDashboard/OrganizationDashboardMocks.ts b/src/screens/OrganizationDashboard/OrganizationDashboardMocks.ts index e005ed2e7d..af1e9a799b 100644 --- a/src/screens/OrganizationDashboard/OrganizationDashboardMocks.ts +++ b/src/screens/OrganizationDashboard/OrganizationDashboardMocks.ts @@ -210,6 +210,19 @@ export const MOCKS = [ endTime: '17:00:00', allDay: false, recurring: false, + attendees: [ + { + _id: 'userId1', + createdAt: '2023-01-01T00:00:00.000Z', + firstName: 'John', + lastName: 'Doe', + gender: 'Male', + eventsAttended: { + _id: 'eventId1', + endDate: '2023-10-29T23:59:59.000Z', + }, + }, + ], recurrenceRule: null, isRecurringEventException: false, isPublic: true, @@ -225,6 +238,19 @@ export const MOCKS = [ startTime: '08:00:00', endTime: '17:00:00', allDay: false, + attendees: [ + { + _id: 'userId1', + createdAt: '2023-01-01T00:00:00.000Z', + firstName: 'John', + lastName: 'Doe', + gender: 'Male', + eventsAttended: { + _id: 'eventId1', + endDate: '2023-10-29T23:59:59.000Z', + }, + }, + ], recurring: false, recurrenceRule: null, isRecurringEventException: false,