online-notification.ts 623 B

123456789101112131415
  1. // Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. import { OnlineNotificationSeenDocument } from '#shared/entities/online-notification/graphql/mutations/seen.api.ts'
  3. import type { OnlineNotificationSeenPayload } from '#shared/graphql/types.ts'
  4. import { mockGraphQLApi } from '#tests/support/mock-graphql-api.ts'
  5. import { nullableMock } from '#tests/support/utils.ts'
  6. export const mockOnlineNotificationSeenGql = () => {
  7. return mockGraphQLApi(OnlineNotificationSeenDocument).willResolve(
  8. nullableMock<OnlineNotificationSeenPayload>({
  9. success: true,
  10. errors: null,
  11. }),
  12. )
  13. }