online-notification.ts 624 B

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