{"size": 909, "ext": "js", "max_stars_repo_path": "src/utils/__mocks__/git.js", "max_stars_repo_name": "Aghassi/oao", "max_stars_repo_stars_event_min_datetime": "2017-02-12T12:35:51.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-28T03:33:08.000Z", "max_issues_repo_path": "src/utils/__mocks__/git.js", "max_issues_repo_name": "Aghassi/oao", "max_issues_repo_issues_event_min_datetime": "2017-02-11T21:10:49.000Z", "max_issues_repo_issues_event_max_datetime": "2021-05-25T07:49:45.000Z", "max_forks_repo_path": "src/utils/__mocks__/git.js", "max_forks_repo_name": "Aghassi/oao", "max_forks_repo_forks_event_min_datetime": "2017-02-11T21:19:49.000Z", "max_forks_repo_forks_event_max_datetime": "2022-02-25T20:17:14.000Z"}
{"max_stars_count": 894, "max_issues_count": 115, "max_forks_count": 53, "avg_line_length": 25.25, "max_line_length": 74, "alphanum_fraction": 0.6380638064}
/* eslint-env jest */

const git = jest.genMockFromModule('../git');
const pkg = require('../../../package.json');

git._initStubs = () => {
  let branch = 'master';
  git._setBranch = branch0 => {
    branch = branch0;
  };
  git.gitCurBranch = jest.fn(() => Promise.resolve(branch));

  let uncommitted = '';
  git._setUncommitted = uncommitted0 => {
    uncommitted = uncommitted0;
  };
  git.gitUncommittedChanges = jest.fn(() => Promise.resolve(uncommitted));

  let unpulled = '0';
  git._setUnpulled = unpulled0 => {
    unpulled = unpulled0;
  };
  git.gitUnpulledChanges = jest.fn(() => Promise.resolve(unpulled));

  const lastTag = `v${pkg.version}`;
  git.gitLastTag = jest.fn(() => Promise.resolve(lastTag));

  let diff = 'SOMETHING_HAS_CHANGED';
  git._setSubpackageDiff = diff0 => {
    diff = diff0;
  };
  git.gitDiffSinceIn = jest.fn(() => Promise.resolve(diff));
};

module.exports = git;
