Commit fae78a06 authored by Savas Vedova's avatar Savas Vedova

Merge branch '346620-change-shared-addon-tests-to-accommodate-tests-for-minutes' into 'master'

Change shared addon component tests to accommodate tests for CI minutes

See merge request gitlab-org/gitlab!77920
parents 0b66f2f4 557c40b0
......@@ -4,15 +4,11 @@ import plansQuery from 'ee/subscriptions/graphql/queries/plans.customer.query.gr
import orderPreviewQuery from 'ee/subscriptions/graphql/queries/order_preview.customer.query.graphql';
import { createMockClient } from 'helpers/mock_apollo_helper';
import { CUSTOMERSDOT_CLIENT } from 'ee/subscriptions/buy_addons_shared/constants';
import {
mockCiMinutesPlans,
mockDefaultCache,
mockOrderPreview,
} from 'ee_jest/subscriptions/mock_data';
import { mockDefaultCache, mockOrderPreview } from 'ee_jest/subscriptions/mock_data';
export function createMockApolloProvider(mockResponses = {}, dataset = {}) {
const {
plansQueryMock = jest.fn().mockResolvedValue({ data: { plans: mockCiMinutesPlans } }),
plansQueryMock,
orderPreviewQueryMock = jest
.fn()
.mockResolvedValue({ data: { orderPreview: mockOrderPreview } }),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment