Skip to main content

talawa-admin / Modules / screens/OrganizationFundCampaign/OrganizationFundCampaignMocks

Module: screens/OrganizationFundCampaign/OrganizationFundCampaignMocks

Table of contents

Variables

Variables

EMPTY_MOCKS

Const EMPTY_MOCKS: { request: { query: DocumentNode = FUND_CAMPAIGN; variables: { id: undefined = undefined } } ; result: { data: { getFundById: { campaigns: never[] = [] } } } }[]

Defined in

src/screens/OrganizationFundCampaign/OrganizationFundCampaignMocks.tsx:249


MOCKS

Const MOCKS: ({ request: { query: DocumentNode = FUND_CAMPAIGN; variables: { currency?: undefined = 'INR'; endDate?: undefined = '2/2/23'; fundId?: undefined = undefined; fundingGoal?: undefined = 1000; id: undefined = undefined; name?: undefined = 'ActionItemCategory 1 updated'; startDate?: undefined = '1/1/23' } } ; result: { data: { createFundraisingCampaign?: undefined ; getFundById: { campaigns: { _id: string = '1'; currency: string = 'USD'; endDate: string = '2024-01-01'; fundingGoal: number = 100; name: string = 'Campaign 1'; startDate: string = '2024-01-01' }[] } ; removeFundraisingCampaign?: undefined ; updateFundraisingCampaign?: undefined } } } | { request: { query: DocumentNode = CREATE_CAMPAIGN_MUTATION; variables: { currency: string = 'USD'; endDate: string = '2024-03-10'; fundId: undefined = undefined; fundingGoal: number = 100; id?: undefined = '123'; name: string = 'Campaign 1'; startDate: string = '2024-03-10' } } ; result: { data: { createFundraisingCampaign: { _id: string = '3' } ; getFundById?: undefined ; removeFundraisingCampaign?: undefined ; updateFundraisingCampaign?: undefined } } } | { request: { query: DocumentNode = UPDATE_CAMPAIGN_MUTATION; variables: { currency: string = 'INR'; endDate: string = '2024-03-10'; fundId?: undefined = undefined; fundingGoal: number = 1000; id: string = '1'; name: string = 'Campaign 4'; startDate: string = '2024-03-10' } } ; result: { data: { createFundraisingCampaign?: undefined ; getFundById?: undefined ; removeFundraisingCampaign?: undefined ; updateFundraisingCampaign: { _id: string = '1' } } } } | { request: { query: DocumentNode = DELETE_CAMPAIGN_MUTATION; variables: { currency?: undefined = 'INR'; endDate?: undefined = '2/2/23'; fundId?: undefined = undefined; fundingGoal?: undefined = 1000; id: string = '1'; name?: undefined = 'ActionItemCategory 1 updated'; startDate?: undefined = '1/1/23' } } ; result: { data: { createFundraisingCampaign?: undefined ; getFundById?: undefined ; removeFundraisingCampaign: { _id: string = '1' } ; updateFundraisingCampaign?: undefined } } })[]

Defined in

src/screens/OrganizationFundCampaign/OrganizationFundCampaignMocks.tsx:8


MOCKS_ERROR_CREATE_CAMPAIGN

Const MOCKS_ERROR_CREATE_CAMPAIGN: ({ error?: undefined ; request: { query: DocumentNode = FUND_CAMPAIGN; variables: { currency?: undefined = 'INR'; endDate?: undefined = '2/2/23'; fundId?: undefined = undefined; fundingGoal?: undefined = 1000; id: undefined = undefined; name?: undefined = 'ActionItemCategory 1 updated'; startDate?: undefined = '1/1/23' } } ; result: { data: { getFundById: { campaigns: { _id: string = '1'; currency: string = 'USD'; endDate: string = '2021-01-01'; fundingGoal: number = 100; name: string = 'Campaign 1'; startDate: string = '2021-01-01' }[] } } } } | { error: Error ; request: { query: DocumentNode = CREATE_CAMPAIGN_MUTATION; variables: { currency: string = 'USD'; endDate: string = '2024-03-10'; fundId: undefined = undefined; fundingGoal: number = 100; id?: undefined = '123'; name: string = 'Campaign 1'; startDate: string = '2024-03-10' } } ; result?: undefined })[]

Defined in

src/screens/OrganizationFundCampaign/OrganizationFundCampaignMocks.tsx:109


MOCKS_ERROR_DELETE_CAMPAIGN

Const MOCKS_ERROR_DELETE_CAMPAIGN: ({ error?: undefined ; request: { query: DocumentNode = FUND_CAMPAIGN; variables: { id: undefined = undefined } } ; result: { data: { getFundById: { campaigns: { _id: string = '1'; currency: string = 'USD'; endDate: string = '2021-01-01'; fundingGoal: number = 100; name: string = 'Campaign 1'; startDate: string = '2021-01-01' }[] } } } } | { error: Error ; request: { query: DocumentNode = DELETE_CAMPAIGN_MUTATION; variables: { id: string = '1' } } ; result?: undefined })[]

Defined in

src/screens/OrganizationFundCampaign/OrganizationFundCampaignMocks.tsx:206


MOCKS_ERROR_UPDATE_CAMPAIGN

Const MOCKS_ERROR_UPDATE_CAMPAIGN: ({ error?: undefined ; request: { query: DocumentNode = FUND_CAMPAIGN; variables: { currency?: undefined = 'INR'; endDate?: undefined = '2/2/23'; fundingGoal?: undefined = 1000; id: undefined = undefined; name?: undefined = 'ActionItemCategory 1 updated'; startDate?: undefined = '1/1/23' } } ; result: { data: { getFundById: { campaigns: { _id: string = '1'; currency: string = 'USD'; endDate: string = '2021-01-01'; fundingGoal: number = 100; name: string = 'Campaign 1'; startDate: string = '2021-01-01' }[] } } } } | { error: Error ; request: { query: DocumentNode = UPDATE_CAMPAIGN_MUTATION; variables: { currency: string = 'USD'; endDate: string = '2024-03-10'; fundingGoal: number = 100; id: undefined = undefined; name: string = 'Campaign 1'; startDate: string = '2024-03-10' } } ; result?: undefined })[]

Defined in

src/screens/OrganizationFundCampaign/OrganizationFundCampaignMocks.tsx:158


MOCK_FUND_CAMPAIGN_ERROR

Const MOCK_FUND_CAMPAIGN_ERROR: { error: Error ; request: { query: DocumentNode = FUND_CAMPAIGN; variables: { id: undefined = undefined } } }[]

Defined in

src/screens/OrganizationFundCampaign/OrganizationFundCampaignMocks.tsx:98