Commit 8561dac6 authored by Alexander Turinske's avatar Alexander Turinske

Rename default import from mock_apollo_helpers

- in mock_apollo_helpers, the default export is usually named
  createMockApollo
- then a utility method called `createMockApolloProvider` is
  created to utilize createMockApollo
- naming the imported method `createMockApolloProvider` could be
  confusing, so I am renaming it
parent 6b1056e9
......@@ -6,7 +6,7 @@ import PolicyList from 'ee/threat_monitoring/components/policy_list.vue';
import networkPoliciesQuery from 'ee/threat_monitoring/graphql/queries/network_policies.query.graphql';
import scanExecutionPoliciesQuery from 'ee/threat_monitoring/graphql/queries/scan_execution_policies.query.graphql';
import createStore from 'ee/threat_monitoring/store';
import createMockApolloProvider from 'helpers/mock_apollo_helper';
import createMockApollo from 'helpers/mock_apollo_helper';
import { mountExtended, shallowMountExtended } from 'helpers/vue_test_utils_helper';
import waitForPromises from 'helpers/wait_for_promises';
import { networkPolicies, scanExecutionPolicies } from '../mocks/mock_apollo';
......@@ -59,7 +59,7 @@ describe('PolicyList component', () => {
provide: {
projectPath: fullPath,
},
apolloProvider: createMockApolloProvider([
apolloProvider: createMockApollo([
[networkPoliciesQuery, requestHandlers.networkPolicies],
[scanExecutionPoliciesQuery, requestHandlers.scanExecutionPolicies],
]),
......
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