{"size": 634, "ext": "js", "max_stars_repo_path": "test2/mask/detector.js", "max_stars_repo_name": "dpck/depack", "max_stars_repo_stars_event_min_datetime": "2020-11-26T09:13:35.000Z", "max_stars_repo_stars_event_max_datetime": "2020-12-30T01:35:38.000Z", "max_issues_repo_path": "test2/mask/detector.js", "max_issues_repo_name": "artdecocode/depack", "max_issues_repo_issues_event_min_datetime": "2019-03-11T14:33:10.000Z", "max_issues_repo_issues_event_max_datetime": "2019-03-23T20:06:19.000Z", "max_forks_repo_path": "test2/mask/detector.js", "max_forks_repo_name": "dpck/depack", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 2, "max_issues_count": 2, "max_forks_count": null, "avg_line_length": 30.1904761905, "max_line_length": 78, "alphanum_fraction": 0.7066246057}
import { makeTestSuite } from 'zoroaster'
import { getMatches, getRequireMatches } from '../../src/lib/detector/lib'
import { detect } from '../../src/lib/detector'

export const GetMatches = makeTestSuite('test/result/get-matches.md', {
  getResults: getMatches,
  jsonProps: ['expected'],
})
export const GetRequireMatches = makeTestSuite('test/result/get-require.md', {
  getResults: getRequireMatches,
  jsonProps: ['expected'],
})

export const Detect = makeTestSuite('test/result/detect.md', {
  async getResults(input) {
    const res = await detect(input)
    delete res.isES6
    return res
  },
  jsonProps: ['expected'],
})