formUpdater.ts 472 B

12345678910111213
  1. // Copyright (C) 2012-2023 Zammad Foundation, https://zammad-foundation.org/
  2. import { FormUpdaterDocument } from '@shared/components/Form/graphql/queries/formUpdater.api'
  3. import type { FormUpdaterQuery } from '@shared/graphql/types'
  4. import { mockGraphQLApi } from '../mock-graphql-api'
  5. export const mockFormUpdater = (formUpdater?: FormUpdaterQuery) => {
  6. return mockGraphQLApi(FormUpdaterDocument).willResolve(
  7. formUpdater || {
  8. formUpdater: {},
  9. },
  10. )
  11. }