diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-02-18 12:45:46 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-02-18 12:45:46 +0300 |
commit | a7b3560714b4d9cc4ab32dffcd1f74a284b93580 (patch) | |
tree | 7452bd5c3545c2fa67a28aa013835fb4fa071baf /spec/frontend/vue_shared/security_reports | |
parent | ee9173579ae56a3dbfe5afe9f9410c65bb327ca7 (diff) |
Add latest changes from gitlab-org/gitlab@14-8-stable-eev14.8.0-rc42
Diffstat (limited to 'spec/frontend/vue_shared/security_reports')
-rw-r--r-- | spec/frontend/vue_shared/security_reports/components/manage_via_mr_spec.js | 6 | ||||
-rw-r--r-- | spec/frontend/vue_shared/security_reports/mock_data.js | 2 |
2 files changed, 5 insertions, 3 deletions
diff --git a/spec/frontend/vue_shared/security_reports/components/manage_via_mr_spec.js b/spec/frontend/vue_shared/security_reports/components/manage_via_mr_spec.js index facbd51168c..39909e26ef0 100644 --- a/spec/frontend/vue_shared/security_reports/components/manage_via_mr_spec.js +++ b/spec/frontend/vue_shared/security_reports/components/manage_via_mr_spec.js @@ -16,7 +16,7 @@ jest.mock('~/lib/utils/url_utility'); Vue.use(VueApollo); -const projectPath = 'namespace/project'; +const projectFullPath = 'namespace/project'; describe('ManageViaMr component', () => { let wrapper; @@ -40,7 +40,7 @@ describe('ManageViaMr component', () => { wrapper = extendedWrapper( mount(ManageViaMr, { provide: { - projectPath, + projectFullPath, }, propsData: { feature: { @@ -65,7 +65,7 @@ describe('ManageViaMr component', () => { // the ones available in the current test context. const supportedReportTypes = Object.entries(featureToMutationMap).map( ([featureType, { getMutationPayload, mutationId }]) => { - const { mutation, variables: mutationVariables } = getMutationPayload(projectPath); + const { mutation, variables: mutationVariables } = getMutationPayload(projectFullPath); return [humanize(featureType), featureType, mutation, mutationId, mutationVariables]; }, ); diff --git a/spec/frontend/vue_shared/security_reports/mock_data.js b/spec/frontend/vue_shared/security_reports/mock_data.js index 2b1513bb0f8..dac9accbbf5 100644 --- a/spec/frontend/vue_shared/security_reports/mock_data.js +++ b/spec/frontend/vue_shared/security_reports/mock_data.js @@ -324,7 +324,9 @@ export const secretDetectionDiffSuccessMock = { export const securityReportMergeRequestDownloadPathsQueryNoArtifactsResponse = { project: { + id: 'project-1', mergeRequest: { + id: 'mr-1', headPipeline: { id: 'gid://gitlab/Ci::Pipeline/176', jobs: { |