update.mocks.ts 576 B

123456789101112
  1. import * as Types from '#shared/graphql/types.ts';
  2. import * as Mocks from '#tests/graphql/builders/mocks.ts'
  3. import * as Operations from './update.api.ts'
  4. export function mockOrganizationUpdateMutation(defaults: Mocks.MockDefaultsValue<Types.OrganizationUpdateMutation, Types.OrganizationUpdateMutationVariables>) {
  5. return Mocks.mockGraphQLResult(Operations.OrganizationUpdateDocument, defaults)
  6. }
  7. export function waitForOrganizationUpdateMutationCalls() {
  8. return Mocks.waitForGraphQLMockCalls<Types.OrganizationUpdateMutation>(Operations.OrganizationUpdateDocument)
  9. }