Skip to content

Commit

Permalink
add ts-doc
Browse files Browse the repository at this point in the history
  • Loading branch information
shivasankaran18 committed Jan 10, 2025
1 parent dcf53c1 commit 8dd138d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/screens/UserPortal/Volunteer/Groups/GroupModal.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ vi.mock('react-toastify', () => ({

const link1 = new StaticMockLink(MOCKS);
const link2 = new StaticMockLink(UPDATE_ERROR_MOCKS);

/**
* Translations for test cases
*/

const t = {
...JSON.parse(
JSON.stringify(
Expand All @@ -37,6 +42,10 @@ const t = {
...JSON.parse(JSON.stringify(i18n.getDataByLanguage('en')?.errors ?? {})),
};

/**
* Props for `GroupModal` component used in tests
*/

const itemProps: InterfaceGroupModal[] = [
{
isOpen: true,
Expand Down

0 comments on commit 8dd138d

Please sign in to comment.