summaryrefslogtreecommitdiff
path: root/spec/frontend/projects/settings/repository/branch_rules/mock_data.js
blob: 14ed35f047d95d8a158c41c35d2e0a56b14fae76 (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
export const branchRulesMockResponse = {
  data: {
    project: {
      id: '123',
      __typename: 'Project',
      branchRules: {
        __typename: 'BranchRuleConnection',
        nodes: [
          {
            name: 'main',
            __typename: 'BranchRule',
          },
          {
            name: 'test-*',
            __typename: 'BranchRule',
          },
        ],
      },
    },
  },
};

export const propsDataMock = {
  projectPath: 'some/project/path',
};