Skip to content

Commit

Permalink
Add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
im-vedant committed Dec 14, 2024
1 parent 60002f1 commit 9c87ad3
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/screens/OrganizationVenues/OrganizationVenues.spec.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
/**
* Tests for the OrganizationVenues component.
* These tests include:
* - Ensuring the component renders correctly with default props.
* - Handling the absence of `orgId` by redirecting to the homepage.
* - Fetching and displaying venues via Apollo GraphQL queries.
* - Allowing users to search venues by name or description.
* - Sorting venues by capacity in ascending or descending order.
* - Verifying that long venue names or descriptions are handled gracefully.
* - Testing loading states and edge cases for Apollo queries.
* - Mocking GraphQL mutations for venue-related actions and validating their behavior.
*/
import React from 'react';
import { MockedProvider } from '@apollo/react-testing';
import type { RenderResult } from '@testing-library/react';
Expand Down

0 comments on commit 9c87ad3

Please sign in to comment.