{"size": 558, "ext": "js", "max_stars_repo_path": "tests/props.js", "max_stars_repo_name": "BrooksPatton/functional-promises", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "tests/props.js", "max_issues_repo_name": "BrooksPatton/functional-promises", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "tests/props.js", "max_forks_repo_name": "BrooksPatton/functional-promises", "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": 18.6, "max_line_length": 38, "alphanum_fraction": 0.5125448029}
const test = require('ava')
const FP = require('../')

test('FP.get(...keyNames)', t => FP
  .resolve({foo: 'bar', baz: 'woo'})
  .get('foo', 'baz')
  .then(obj => t.is(obj.foo, 'bar'))
)

test('FP.get([keyNames])', t => FP
  .resolve({foo: 'bar', baz: 'woo'})
  .get(['foo', 'baz'])
  .then(obj => t.is(obj.foo, 'bar'))
)

test('FP.get(keyName)', t => FP
  .resolve({foo: 'bar'})
  .get('foo')
  .then(bar => t.is(bar, 'bar'))
)

test('FP.set(keyName, value)', t => FP
  .resolve({foo: 'bar'})
  .set('foo', 'baz')
  .then(obj => t.is(obj.foo, 'baz'))
)



