{"size": 586, "ext": "js", "max_stars_repo_path": "packages/cli/tests/main.test.js", "max_stars_repo_name": "maximepatry/henri", "max_stars_repo_stars_event_min_datetime": "2017-05-17T12:29:03.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-03T16:41:26.000Z", "max_issues_repo_path": "packages/cli/tests/main.test.js", "max_issues_repo_name": "maximepatry/henri", "max_issues_repo_issues_event_min_datetime": "2017-05-23T16:39:50.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-26T10:15:05.000Z", "max_forks_repo_path": "packages/cli/tests/main.test.js", "max_forks_repo_name": "maximepatry/henri", "max_forks_repo_forks_event_min_datetime": "2017-05-23T01:28:04.000Z", "max_forks_repo_forks_event_max_datetime": "2020-06-20T23:24:34.000Z"}
{"max_stars_count": 56, "max_issues_count": 88, "max_forks_count": 9, "avg_line_length": 27.9047619048, "max_line_length": 69, "alphanum_fraction": 0.5597269625}
const { spawnSync } = require('child_process');

const henri = args => {
  return spawnSync('henri', args.split(' '));
};

describe('the cli', () => {
  describe('help', () => {
    xtest('will show help with no arguments', () => {
      const { status, stdout } = henri('');
      expect(status).toBe(0);
      expect(stdout.toString('utf8').includes('Usage')).toBeTruthy();
    });
    xtest('will show help', () => {
      const { status, stdout } = henri('help');
      expect(status).toBe(0);
      expect(stdout.toString('utf8').includes('Usage')).toBeTruthy();
    });
  });
});
