events.mocks.ts 582 B

123456789101112
  1. import * as Types from '#shared/graphql/types.ts';
  2. import * as Mocks from '#tests/graphql/builders/mocks.ts'
  3. import * as Operations from './events.api.ts'
  4. export function mockCalendarIcsFileEventsQuery(defaults: Mocks.MockDefaultsValue<Types.CalendarIcsFileEventsQuery, Types.CalendarIcsFileEventsQueryVariables>) {
  5. return Mocks.mockGraphQLResult(Operations.CalendarIcsFileEventsDocument, defaults)
  6. }
  7. export function waitForCalendarIcsFileEventsQueryCalls() {
  8. return Mocks.waitForGraphQLMockCalls<Types.CalendarIcsFileEventsQuery>(Operations.CalendarIcsFileEventsDocument)
  9. }