summaryrefslogtreecommitdiff
path: root/spec/frontend/projects/commit/mock_data.js
blob: e398d46e69cefaa29c4a04ea928ff6144344d8b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import { I18N_MODAL } from '~/projects/commit/constants';

export default {
  mockModal: {
    modalTitle: '_modal_title_',
    endpoint: '_endpoint_',
    branch: '_branch_',
    pushCode: true,
    defaultBranch: '_branch_',
    existingBranch: '_existing_branch',
    branchesEndpoint: '_branches_endpoint_',
  },
  modalPropsData: {
    i18n: {
      branchLabel: '_branch_label_',
      actionPrimaryText: '_action_primary_text_',
      startMergeRequest: '_start_merge_request_',
      existingBranch: I18N_MODAL.existingBranch,
      branchInFork: '_new_branch_in_fork_message_',
      newMergeRequest: '_new merge request_',
      actionCancelText: '_action_cancel_text_',
    },
    modalId: '_modal_id_',
    openModal: '_open_modal_',
  },
  mockBranches: ['_branch_1', '_abc_', '_main_'],
  mockProjects: [
    { id: 1, name: '_project_1', refsUrl: '/_project_1/refs' },
    { id: 2, name: '_abc_', refsUrl: '/_abc_/refs' },
    { id: 3, name: '_project_', refsUrl: '/_project_/refs' },
  ],
};