{"size": 575, "ext": "js", "max_stars_repo_path": "src/utils/index.test.js", "max_stars_repo_name": "LucDinhVan/vlhb-admin", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/utils/index.test.js", "max_issues_repo_name": "LucDinhVan/vlhb-admin", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/utils/index.test.js", "max_forks_repo_name": "LucDinhVan/vlhb-admin", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 28.75, "max_line_length": 65, "alphanum_fraction": 0.5739130435}
const { pathToRegexp } = require('path-to-regexp')

describe('test pathToRegexp', () => {
  it('get right', () => {
    expect(pathToRegexp('/user').exec('/vi/user')).toEqual(
      pathToRegexp('/user').exec('/user')
    )
    expect(pathToRegexp('/user').exec('/user')).toEqual(
      pathToRegexp('/user').exec('/user')
    )

    expect(pathToRegexp('/user/:id').exec('/vi/user/1')).toEqual(
      pathToRegexp('/user/:id').exec('/user/1')
    )
    expect(pathToRegexp('/user/:id').exec('/user/1')).toEqual(
      pathToRegexp('/user/:id').exec('/user/1')
    )
  })
})
