2021-01-29 00:20:46 +05:30
|
|
|
/* eslint-disable global-require, import/no-unresolved */
|
2020-10-24 23:57:45 +05:30
|
|
|
import { memoize } from 'lodash';
|
|
|
|
|
|
|
|
export const getProject = () => require('test_fixtures/api/projects/get.json');
|
|
|
|
export const getBranch = () => require('test_fixtures/api/projects/branches/get.json');
|
|
|
|
export const getMergeRequests = () => require('test_fixtures/api/merge_requests/get.json');
|
|
|
|
export const getRepositoryFiles = () => require('test_fixtures/projects_json/files.json');
|
|
|
|
export const getPipelinesEmptyResponse = () =>
|
|
|
|
require('test_fixtures/projects_json/pipelines_empty.json');
|
|
|
|
export const getCommit = memoize(() => getBranch().commit);
|