-
-
Notifications
You must be signed in to change notification settings - Fork 844
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Improve Code Coverage for AddPeopleToTag.tsx * Improve Code Coverage for AddPeopleToTag.tsx
- Loading branch information
1 parent
00fe16b
commit d19190a
Showing
6 changed files
with
412 additions
and
1 deletion.
There are no files selected for viewing
79 changes: 79 additions & 0 deletions
79
...uto-docs/components/AddPeopleToTag/AddPeopleToTagsMocks/variables/MOCK_EMPTY.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
[Admin Docs](/) | ||
|
||
*** | ||
|
||
# Variable: MOCK\_EMPTY | ||
|
||
> `const` **MOCK\_EMPTY**: `object`[] | ||
Defined in: [src/components/AddPeopleToTag/AddPeopleToTagsMocks.ts:294](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/AddPeopleToTag/AddPeopleToTagsMocks.ts#L294) | ||
|
||
## Type declaration | ||
|
||
### request | ||
|
||
> **request**: `object` | ||
#### request.query | ||
|
||
> **query**: `DocumentNode` = `USER_TAGS_MEMBERS_TO_ASSIGN_TO` | ||
#### request.variables | ||
|
||
> **variables**: `object` | ||
#### request.variables.first | ||
|
||
> **first**: `number` = `TAGS_QUERY_DATA_CHUNK_SIZE` | ||
#### request.variables.id | ||
|
||
> **id**: `string` = `'1'` | ||
#### request.variables.where | ||
|
||
> **where**: `object` | ||
#### request.variables.where.firstName | ||
|
||
> **firstName**: `object` | ||
#### request.variables.where.firstName.starts\_with | ||
|
||
> **starts\_with**: `string` = `''` | ||
#### request.variables.where.lastName | ||
|
||
> **lastName**: `object` | ||
#### request.variables.where.lastName.starts\_with | ||
|
||
> **starts\_with**: `string` = `''` | ||
### result | ||
|
||
> **result**: `object` | ||
#### result.data | ||
|
||
> **data**: `object` | ||
#### result.data.getUsersToAssignTo | ||
|
||
> **getUsersToAssignTo**: `object` | ||
#### result.data.getUsersToAssignTo.usersToAssignTo | ||
|
||
> **usersToAssignTo**: `object` | ||
#### result.data.getUsersToAssignTo.usersToAssignTo.edges | ||
|
||
> **edges**: `any`[] = `[]` | ||
#### result.data.getUsersToAssignTo.usersToAssignTo.pageInfo | ||
|
||
> **pageInfo**: `object` | ||
#### result.data.getUsersToAssignTo.usersToAssignTo.pageInfo.hasNextPage | ||
|
||
> **hasNextPage**: `boolean` = `false` |
9 changes: 9 additions & 0 deletions
9
...docs/components/AddPeopleToTag/AddPeopleToTagsMocks/variables/MOCK_NON_ERROR.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[Admin Docs](/) | ||
|
||
*** | ||
|
||
# Variable: MOCK\_NON\_ERROR | ||
|
||
> `const` **MOCK\_NON\_ERROR**: (\{ `error`: `undefined`; `request`: \{ `query`: `DocumentNode`; `variables`: \{ `first`: `number`; `id`: `string`; `tagId`: `undefined`; `userIds`: `undefined`; `where`: \{ `firstName`: \{ `starts_with`: `string`; \}; `lastName`: \{ `starts_with`: `string`; \}; \}; \}; \}; `result`: \{ `data`: \{ `getUsersToAssignTo`: \{ `usersToAssignTo`: \{ `edges`: `object`[]; `pageInfo`: \{ `endCursor`: `string`; `hasNextPage`: `boolean`; \}; \}; \}; \}; \}; \} \| \{ `error`: `Error`; `request`: \{ `query`: `DocumentNode`; `variables`: \{ `first`: `undefined`; `id`: `undefined`; `tagId`: `string`; `userIds`: `string`[]; `where`: `undefined`; \}; \}; `result`: `undefined`; \})[] | ||
Defined in: [src/components/AddPeopleToTag/AddPeopleToTagsMocks.ts:322](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/AddPeopleToTag/AddPeopleToTagsMocks.ts#L322) |
9 changes: 9 additions & 0 deletions
9
...o-docs/components/AddPeopleToTag/AddPeopleToTagsMocks/variables/MOCK_NO_DATA.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[Admin Docs](/) | ||
|
||
*** | ||
|
||
# Variable: MOCK\_NO\_DATA | ||
|
||
> `const` **MOCK\_NO\_DATA**: (\{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `first`: `number`; `id`: `string`; `tagId`: `undefined`; `userIds`: `undefined`; `where`: \{ `firstName`: \{ `starts_with`: `string`; \}; `lastName`: \{ `starts_with`: `string`; \}; \}; \}; \}; `result`: \{ `data`: \{ `getUsersToAssignTo`: \{ `usersToAssignTo`: \{ `edges`: `object`[]; `pageInfo`: \{ `endCursor`: `string`; `hasNextPage`: `boolean`; \}; \}; \}; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `first`: `undefined`; `id`: `undefined`; `tagId`: `string`; `userIds`: `string`[]; `where`: `undefined`; \}; \}; `result`: \{ `data`: `any`; \}; \})[] | ||
Defined in: [src/components/AddPeopleToTag/AddPeopleToTagsMocks.ts:413](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/AddPeopleToTag/AddPeopleToTagsMocks.ts#L413) |
9 changes: 9 additions & 0 deletions
9
...omponents/AddPeopleToTag/AddPeopleToTagsMocks/variables/MOCK_NULL_FETCH_MORE.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[Admin Docs](/) | ||
|
||
*** | ||
|
||
# Variable: MOCK\_NULL\_FETCH\_MORE | ||
|
||
> `const` **MOCK\_NULL\_FETCH\_MORE**: (\{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `after`: `undefined`; `first`: `number`; `id`: `string`; `where`: \{ `firstName`: \{ `starts_with`: `string`; \}; `lastName`: \{ `starts_with`: `string`; \}; \}; \}; \}; `result`: \{ `data`: \{ `getUsersToAssignTo`: \{ `usersToAssignTo`: \{ `edges`: `object`[]; `pageInfo`: \{ `endCursor`: `string`; `hasNextPage`: `boolean`; \}; \}; \}; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `after`: `string`; `first`: `number`; `id`: `string`; `where`: \{ `firstName`: \{ `starts_with`: `string`; \}; `lastName`: \{ `starts_with`: `string`; \}; \}; \}; \}; `result`: \{ `data`: `any`; \}; \})[] | ||
Defined in: [src/components/AddPeopleToTag/AddPeopleToTagsMocks.ts:362](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/AddPeopleToTag/AddPeopleToTagsMocks.ts#L362) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.