{"size": 420, "ext": "js", "max_stars_repo_path": "__tests__/helpers/gather-os-metrics.spec.js", "max_stars_repo_name": "LeandroSQ/hapijs-status-monitor", "max_stars_repo_stars_event_min_datetime": "2016-08-19T19:13:03.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-13T01:51:40.000Z", "max_issues_repo_path": "__tests__/helpers/gather-os-metrics.spec.js", "max_issues_repo_name": "LeandroSQ/hapijs-status-monitor", "max_issues_repo_issues_event_min_datetime": "2016-08-19T19:46:59.000Z", "max_issues_repo_issues_event_max_datetime": "2021-09-10T05:42:33.000Z", "max_forks_repo_path": "__tests__/helpers/gather-os-metrics.spec.js", "max_forks_repo_name": "LeandroSQ/hapijs-status-monitor", "max_forks_repo_forks_event_min_datetime": "2016-08-19T19:52:07.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-14T12:35:57.000Z"}
{"max_stars_count": 145, "max_issues_count": 33, "max_forks_count": 38, "avg_line_length": 26.25, "max_line_length": 71, "alphanum_fraction": 0.5642857143}
const gatherOsMetrics = require('../../src/helpers/gather-os-metrics');

jest.mock('pidusage');
const pidusage = require('pidusage');

describe('helpers', () => {
  describe('gather-os-metrics', () => {
    describe('when invoked', () => {
      it('then pidusage should be called', () => {
        gatherOsMetrics({}, { os: [], responses: [] });
        expect(pidusage).toHaveBeenCalled();
      });
    });
  });
});
