summaryrefslogtreecommitdiff
path: root/spec/frontend/ci/ci_variable_list/components/ci_project_variables_spec.js
diff options
context:
space:
mode:
Diffstat (limited to 'spec/frontend/ci/ci_variable_list/components/ci_project_variables_spec.js')
-rw-r--r--spec/frontend/ci/ci_variable_list/components/ci_project_variables_spec.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/spec/frontend/ci/ci_variable_list/components/ci_project_variables_spec.js b/spec/frontend/ci/ci_variable_list/components/ci_project_variables_spec.js
index 7230017c560..bd1e6b17d6b 100644
--- a/spec/frontend/ci/ci_variable_list/components/ci_project_variables_spec.js
+++ b/spec/frontend/ci/ci_variable_list/components/ci_project_variables_spec.js
@@ -1,11 +1,10 @@
import { shallowMount } from '@vue/test-utils';
+import { TYPENAME_PROJECT } from '~/graphql_shared/constants';
import { convertToGraphQLId } from '~/graphql_shared/utils';
import ciProjectVariables from '~/ci/ci_variable_list/components/ci_project_variables.vue';
import ciVariableShared from '~/ci/ci_variable_list/components/ci_variable_shared.vue';
-import { GRAPHQL_PROJECT_TYPE } from '~/ci/ci_variable_list/constants';
-
const mockProvide = {
projectFullPath: '/namespace/project',
projectId: 1,
@@ -32,7 +31,7 @@ describe('Ci Project Variable wrapper', () => {
it('Passes down the correct props to ci_variable_shared', () => {
expect(findCiShared().props()).toEqual({
- id: convertToGraphQLId(GRAPHQL_PROJECT_TYPE, mockProvide.projectId),
+ id: convertToGraphQLId(TYPENAME_PROJECT, mockProvide.projectId),
areScopedVariablesAvailable: true,
componentName: 'ProjectVariables',
entity: 'project',