{"size": 424, "ext": "js", "max_stars_repo_path": "services/github/github-repo-size.tester.js", "max_stars_repo_name": "jankeromnes/shields", "max_stars_repo_stars_event_min_datetime": "2019-12-28T14:26:05.000Z", "max_stars_repo_stars_event_max_datetime": "2020-01-12T13:42:46.000Z", "max_issues_repo_path": "services/github/github-repo-size.tester.js", "max_issues_repo_name": "jankeromnes/shields", "max_issues_repo_issues_event_min_datetime": "2019-10-08T23:34:12.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-25T12:33:16.000Z", "max_forks_repo_path": "services/github/github-repo-size.tester.js", "max_forks_repo_name": "jankeromnes/shields", "max_forks_repo_forks_event_min_datetime": "2019-06-14T06:36:55.000Z", "max_forks_repo_forks_event_max_datetime": "2019-06-14T06:36:55.000Z"}
{"max_stars_count": 3, "max_issues_count": 234, "max_forks_count": 1, "avg_line_length": 22.3157894737, "max_line_length": 71, "alphanum_fraction": 0.6462264151}
'use strict'

const { isFileSize } = require('../test-validators')
const t = (module.exports = require('../tester').createServiceTester())

t.create('repository size')
  .get('/badges/shields.json')
  .expectBadge({
    label: 'repo size',
    message: isFileSize,
  })

t.create('repository size (repo not found)')
  .get('/badges/helmets.json')
  .expectBadge({
    label: 'repo size',
    message: 'repo not found',
  })
