Skip to main content

talawa-admin / Modules / components/OrgActionItemCategories/OrgActionItemCategoryMocks

Module: components/OrgActionItemCategories/OrgActionItemCategoryMocks

Table of contents

Variables

Variables

MOCKS

Const MOCKS: ({ request: { query: DocumentNode = ACTION_ITEM_CATEGORY_LIST; variables: { actionItemCategoryId?: undefined = 'actionItemCategory1'; isDisabled?: undefined = true; name?: undefined = 'ActionItemCategory 1 updated'; organizationId: string = '123' } } ; result: { data: { actionItemCategoriesByOrganization: { _id: string = '1'; isDisabled: boolean = false; name: string = 'ActionItemCategory 1' }[] ; createActionItemCategory?: undefined ; updateActionItemCategory?: undefined } } } | { request: { query: DocumentNode = CREATE_ACTION_ITEM_CATEGORY_MUTATION; variables: { actionItemCategoryId?: undefined = 'actionItemCategory1'; isDisabled?: undefined = true; name: string = 'ActionItemCategory 4'; organizationId: string = '123' } } ; result: { data: { actionItemCategoriesByOrganization?: undefined ; createActionItemCategory: { _id: string = '4' } ; updateActionItemCategory?: undefined } } } | { request: { query: DocumentNode = UPDATE_ACTION_ITEM_CATEGORY_MUTATION; variables: { actionItemCategoryId: string = '1'; isDisabled?: undefined = true; name: string = 'ActionItemCategory 1 updated'; organizationId?: undefined = '123' } } ; result: { data: { actionItemCategoriesByOrganization?: undefined ; createActionItemCategory?: undefined ; updateActionItemCategory: { _id: string = '1' } } } } | { request: { query: DocumentNode = UPDATE_ACTION_ITEM_CATEGORY_MUTATION; variables: { actionItemCategoryId: string = '1'; isDisabled: boolean = true; name?: undefined = 'ActionItemCategory 1 updated'; organizationId?: undefined = '123' } } ; result: { data: { actionItemCategoriesByOrganization?: undefined ; createActionItemCategory?: undefined ; updateActionItemCategory: { _id: string = '1' } } } })[]

Defined in

src/components/OrgActionItemCategories/OrgActionItemCategoryMocks.ts:8


MOCKS_ERROR_MUTATIONS

Const MOCKS_ERROR_MUTATIONS: ({ error?: undefined ; request: { query: DocumentNode = ACTION_ITEM_CATEGORY_LIST; variables: { actionItemCategoryId?: undefined = 'actionItemCategory1'; isDisabled?: undefined = true; name?: undefined = 'ActionItemCategory 1 updated'; organizationId: string = '123' } } ; result: { data: { actionItemCategoriesByOrganization: { _id: string = '1'; isDisabled: boolean = false; name: string = 'ActionItemCategory 1' }[] } } } | { error: Error ; request: { query: DocumentNode = CREATE_ACTION_ITEM_CATEGORY_MUTATION; variables: { actionItemCategoryId?: undefined = 'actionItemCategory1'; isDisabled?: undefined = true; name: string = 'ActionItemCategory 4'; organizationId: string = '123' } } ; result?: undefined } | { error: Error ; request: { query: DocumentNode = UPDATE_ACTION_ITEM_CATEGORY_MUTATION; variables: { actionItemCategoryId: string = '1'; isDisabled?: undefined = true; name: string = 'ActionItemCategory 1 updated'; organizationId?: undefined = '123' } } ; result?: undefined } | { error: Error ; request: { query: DocumentNode = UPDATE_ACTION_ITEM_CATEGORY_MUTATION; variables: { actionItemCategoryId: string = '1'; isDisabled: boolean = true; name?: undefined = 'ActionItemCategory 1 updated'; organizationId?: undefined = '123' } } ; result?: undefined })[]

Defined in

src/components/OrgActionItemCategories/OrgActionItemCategoryMocks.ts:109


MOCKS_ERROR_QUERY

Const MOCKS_ERROR_QUERY: { error: Error ; request: { query: DocumentNode = ACTION_ITEM_CATEGORY_LIST; variables: { organizationId: string = '123' } } }[]

Defined in

src/components/OrgActionItemCategories/OrgActionItemCategoryMocks.ts:99