channelEmailValidateConfigurationRoundtrip.mocks.ts 1.1 KB

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 './channelEmailValidateConfigurationRoundtrip.api.ts'
  4. import * as ErrorTypes from '#shared/types/error.ts'
  5. export function mockChannelEmailValidateConfigurationRoundtripMutation(defaults: Mocks.MockDefaultsValue<Types.ChannelEmailValidateConfigurationRoundtripMutation, Types.ChannelEmailValidateConfigurationRoundtripMutationVariables>) {
  6. return Mocks.mockGraphQLResult(Operations.ChannelEmailValidateConfigurationRoundtripDocument, defaults)
  7. }
  8. export function waitForChannelEmailValidateConfigurationRoundtripMutationCalls() {
  9. return Mocks.waitForGraphQLMockCalls<Types.ChannelEmailValidateConfigurationRoundtripMutation>(Operations.ChannelEmailValidateConfigurationRoundtripDocument)
  10. }
  11. export function mockChannelEmailValidateConfigurationRoundtripMutationError(message: string, extensions: {type: ErrorTypes.GraphQLErrorTypes }) {
  12. return Mocks.mockGraphQLResultWithError(Operations.ChannelEmailValidateConfigurationRoundtripDocument, message, extensions);
  13. }