{"size": 481, "ext": "js", "max_stars_repo_path": "src/commands/licenses/__tests__/list.test.js", "max_stars_repo_name": "jonathancreamer-eb/bolt", "max_stars_repo_stars_event_min_datetime": "2017-09-26T05:58:52.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-31T19:11:16.000Z", "max_issues_repo_path": "src/commands/licenses/__tests__/list.test.js", "max_issues_repo_name": "jonathancreamer-eb/bolt", "max_issues_repo_issues_event_min_datetime": "2017-09-26T09:29:58.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-21T07:35:21.000Z", "max_forks_repo_path": "src/commands/licenses/__tests__/list.test.js", "max_forks_repo_name": "jonathancreamer-eb/bolt", "max_forks_repo_forks_event_min_datetime": "2017-10-10T19:49:51.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-25T01:43:28.000Z"}
{"max_stars_count": 2182, "max_issues_count": 191, "max_forks_count": 113, "avg_line_length": 25.3157894737, "max_line_length": 66, "alphanum_fraction": 0.6029106029}
// @flow
import { licensesList, toLicensesListOptions } from '../list';
import * as yarn from '../../../utils/yarn';

jest.mock('../../../utils/yarn');

describe('bolt licenses list', () => {
  it('calls yarn licenses with list script', async () => {
    await licensesList(
      toLicensesListOptions([], { cwd: 'dummyPattern/dummyPath' })
    );
    expect(yarn.cliCommand).toHaveBeenCalledWith(
      'dummyPattern/dummyPath',
      'licenses',
      ['list']
    );
  });
});
