import * as Types from '#shared/graphql/types.ts'; import * as Mocks from '#tests/graphql/builders/mocks.ts' import * as Operations from './userCurrentCalendarSubscriptionUpdate.api.ts' import * as ErrorTypes from '#shared/types/error.ts' export function mockUserCurrentCalendarSubscriptionUpdate(defaults: Mocks.MockDefaultsValue) { return Mocks.mockGraphQLResult(Operations.UserCurrentCalendarSubscriptionUpdateDocument, defaults) } export function waitForUserCurrentCalendarSubscriptionUpdateCalls() { return Mocks.waitForGraphQLMockCalls(Operations.UserCurrentCalendarSubscriptionUpdateDocument) } export function mockUserCurrentCalendarSubscriptionUpdateError(message: string, extensions: {type: ErrorTypes.GraphQLErrorTypes }) { return Mocks.mockGraphQLResultWithError(Operations.UserCurrentCalendarSubscriptionUpdateDocument, message, extensions); }