Skip to main content

talawa-admin / Modules / components/OrgUpdate/OrgUpdateMocks

Module: components/OrgUpdate/OrgUpdateMocks

Table of contents

Variables

Variables

MOCKS

Const MOCKS: ({ request: { query: DocumentNode = ORGANIZATIONS_LIST; variables: { address?: undefined ; description?: undefined = 'This is a new update'; id: string = '123'; image?: undefined ; name?: undefined = 'ActionItemCategory 1 updated'; userRegistrationRequired?: undefined = true; visibleInSearch?: undefined = false } } ; result: { data: { organizations: { _id: string = '123'; address: { city: string = 'Kingston'; countryCode: string = 'JM'; dependentLocality: string = 'Sample Dependent Locality'; line1: string = '123 Jamaica Street'; line2: string = 'Apartment 456'; postalCode: string = 'JM12345'; sortingCode: string = 'ABC-123'; state: string = 'Kingston Parish' } ; admins: { _id: string = '123'; email: string = 'johndoe@gmail.com'; firstName: string = 'John'; lastName: string = 'Doe' }[] ; blockedUsers: never[] = []; creator: { email: string = 'johndoe@example.com'; firstName: string = 'John'; lastName: string = 'Doe' } ; description: string = 'Equitable Access to STEM Education Jobs'; image: null = null; members: { _id: string = '123'; email: string = 'johndoe@gmail.com'; firstName: string = 'John'; lastName: string = 'Doe' } ; membershipRequests: { _id: string = '456'; user: { email: string = 'samsmith@gmail.com'; firstName: string = 'Sam'; lastName: string = 'Smith' } } ; name: string = 'Palisadoes'; userRegistrationRequired: boolean = true; visibleInSearch: boolean = false }[] ; updateOrganization?: undefined } } } | { request: { query: DocumentNode = UPDATE_ORGANIZATION_MUTATION; variables: { address: { city: string = 'Kingston'; countryCode: string = 'JM'; dependentLocality: string = 'Sample Dependent Locality'; line1: string = '123 Jamaica Street'; line2: string = 'Apartment 456'; postalCode: string = 'JM12345'; sortingCode: string = 'ABC-123'; state: string = 'Kingston Parish' } ; description: string = 'This is an updated test organization'; id: string = '123'; image: File ; name: string = 'Updated Organization'; userRegistrationRequired: boolean = true; visibleInSearch: boolean = false } } ; result: { data: { organizations?: undefined ; updateOrganization: { _id: string = '123'; address: { city: string = 'Kingston'; countryCode: string = 'JM'; dependentLocality: string = 'Sample Dependent Locality'; line1: string = '123 Jamaica Street'; line2: string = 'Apartment 456'; postalCode: string = 'JM12345'; sortingCode: string = 'ABC-123'; state: string = 'Kingston Parish' } ; description: string = 'This is an updated test organization'; name: string = 'Updated Organization'; userRegistrationRequired: boolean = true; visibleInSearch: boolean = false } } } })[]

Defined in

src/components/OrgUpdate/OrgUpdateMocks.ts:4


MOCKS_ERROR_ORGLIST

Const MOCKS_ERROR_ORGLIST: { error: Error ; request: { query: DocumentNode = ORGANIZATIONS_LIST; variables: { id: string = '123' } } }[]

Defined in

src/components/OrgUpdate/OrgUpdateMocks.ts:109


MOCKS_ERROR_UPDATE_ORGLIST

Const MOCKS_ERROR_UPDATE_ORGLIST: ({ erorr?: undefined ; request: { query: DocumentNode = ORGANIZATIONS_LIST; variables: { address?: undefined ; description?: undefined = 'This is a new update'; id: string = '123'; image?: undefined ; name?: undefined = 'ActionItemCategory 1 updated'; userRegistrationRequired?: undefined = true; visibleInSearch?: undefined = false } } ; result: { data: { organizations: { _id: string = '123'; address: { city: string = 'Kingston'; countryCode: string = 'JM'; dependentLocality: string = 'Sample Dependent Locality'; line1: string = '123 Jamaica Street'; line2: string = 'Apartment 456'; postalCode: string = 'JM12345'; sortingCode: string = 'ABC-123'; state: string = 'Kingston Parish' } ; admins: { _id: string = '123'; email: string = 'johndoe@gmail.com'; firstName: string = 'John'; lastName: string = 'Doe' }[] ; blockedUsers: never[] = []; creator: { email: string = 'johndoe@example.com'; firstName: string = 'John'; lastName: string = 'Doe' } ; description: string = 'Equitable Access to STEM Education Jobs'; image: null = null; members: { _id: string = '123'; email: string = 'johndoe@gmail.com'; firstName: string = 'John'; lastName: string = 'Doe' } ; membershipRequests: { _id: string = '456'; user: { email: string = 'samsmith@gmail.com'; firstName: string = 'Sam'; lastName: string = 'Smith' } } ; name: string = 'Palisadoes'; userRegistrationRequired: boolean = true; visibleInSearch: boolean = false }[] } } } | { erorr: Error ; request: { query: DocumentNode = UPDATE_ORGANIZATION_MUTATION; variables: { address: { city: string = 'Kingston'; countryCode: string = 'JM'; dependentLocality: string = 'Sample Dependent Locality'; line1: string = '123 Jamaica Street'; line2: string = 'Apartment 456'; postalCode: string = 'JM12345'; sortingCode: string = 'ABC-123'; state: string = 'Kingston Parish' } ; description: string = 'This is an updated test organization'; id: string = '123'; image: File ; name: string = 'Updated Organization'; userRegistrationRequired: boolean = true; visibleInSearch: boolean = false } } ; result?: undefined })[]

Defined in

src/components/OrgUpdate/OrgUpdateMocks.ts:119