ticketSharedDraftStartDelete.mocks.ts 969 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 './ticketSharedDraftStartDelete.api.ts'
  4. import * as ErrorTypes from '#shared/types/error.ts'
  5. export function mockTicketSharedDraftStartDeleteMutation(defaults: Mocks.MockDefaultsValue<Types.TicketSharedDraftStartDeleteMutation, Types.TicketSharedDraftStartDeleteMutationVariables>) {
  6. return Mocks.mockGraphQLResult(Operations.TicketSharedDraftStartDeleteDocument, defaults)
  7. }
  8. export function waitForTicketSharedDraftStartDeleteMutationCalls() {
  9. return Mocks.waitForGraphQLMockCalls<Types.TicketSharedDraftStartDeleteMutation>(Operations.TicketSharedDraftStartDeleteDocument)
  10. }
  11. export function mockTicketSharedDraftStartDeleteMutationError(message: string, extensions: {type: ErrorTypes.GraphQLErrorTypes }) {
  12. return Mocks.mockGraphQLResultWithError(Operations.TicketSharedDraftStartDeleteDocument, message, extensions);
  13. }