ticketArticleRetrySecurityProcess.mocks.ts 1019 B

1234567891011121314151617
  1. import * as Types from '#shared/graphql/types.ts';
  2. import * as Mocks from '#tests/graphql/builders/mocks.ts'
  3. import * as Operations from './ticketArticleRetrySecurityProcess.api.ts'
  4. import * as ErrorTypes from '#shared/types/error.ts'
  5. export function mockTicketArticleRetrySecurityProcessMutation(defaults: Mocks.MockDefaultsValue<Types.TicketArticleRetrySecurityProcessMutation, Types.TicketArticleRetrySecurityProcessMutationVariables>) {
  6. return Mocks.mockGraphQLResult(Operations.TicketArticleRetrySecurityProcessDocument, defaults)
  7. }
  8. export function waitForTicketArticleRetrySecurityProcessMutationCalls() {
  9. return Mocks.waitForGraphQLMockCalls<Types.TicketArticleRetrySecurityProcessMutation>(Operations.TicketArticleRetrySecurityProcessDocument)
  10. }
  11. export function mockTicketArticleRetrySecurityProcessMutationError(message: string, extensions: {type: ErrorTypes.GraphQLErrorTypes }) {
  12. return Mocks.mockGraphQLResultWithError(Operations.TicketArticleRetrySecurityProcessDocument, message, extensions);
  13. }