{"size": 345, "ext": "js", "max_stars_repo_path": "test/identity.js", "max_stars_repo_name": "jinghua000/shadow-fns", "max_stars_repo_stars_event_min_datetime": "2019-10-15T15:00:30.000Z", "max_stars_repo_stars_event_max_datetime": "2020-05-13T22:52:10.000Z", "max_issues_repo_path": "test/identity.js", "max_issues_repo_name": "jinghua000/shadow-fns", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "test/identity.js", "max_forks_repo_name": "jinghua000/shadow-fns", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 3, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 15.6818181818, "max_line_length": 39, "alphanum_fraction": 0.5507246377}
const eq = require('./util/eq')
const f = require('../src')

describe('test identity', function () {

  it('common value', function () {
    
    eq(f.identity(10), 10)
    eq(f.identity(), undefined)
    eq(f.identity(null), null)

  })

  it('identity object', function () {

    let obj = {}

    eq(f.identity(obj) === obj, true)

  })
  
})