{"size": 225, "ext": "js", "max_stars_repo_path": "src/utils.test.js", "max_stars_repo_name": "ifanrx/faas-cli", "max_stars_repo_stars_event_min_datetime": "2018-10-22T15:47:18.000Z", "max_stars_repo_stars_event_max_datetime": "2019-11-12T14:21:08.000Z", "max_issues_repo_path": "src/utils.test.js", "max_issues_repo_name": "ifanrx/faas-cli", "max_issues_repo_issues_event_min_datetime": "2018-10-20T14:43:23.000Z", "max_issues_repo_issues_event_max_datetime": "2021-09-01T17:37:06.000Z", "max_forks_repo_path": "src/utils.test.js", "max_forks_repo_name": "ifanrx/faas-cli", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 5, "max_issues_count": 7, "max_forks_count": null, "avg_line_length": 22.5, "max_line_length": 45, "alphanum_fraction": 0.6}
import { usageError } from './utils'

describe('utils', () => {
  it('usageError', () => {
    const err = usageError('error message')
    expect(err.type).toBe('EUSAGE')
    expect(err.message).toBe('error message')
  })
})
