formUpdater.ts 482 B

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