{"size": 555, "ext": "js", "max_stars_repo_path": "test-examples/global-leak-test.js", "max_stars_repo_name": "jerryorr/client-testing", "max_stars_repo_stars_event_min_datetime": "2016-05-13T08:46:25.000Z", "max_stars_repo_stars_event_max_datetime": "2019-07-03T18:02:39.000Z", "max_issues_repo_path": "test-examples/global-leak-test.js", "max_issues_repo_name": "jerryorr/client-testing", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "test-examples/global-leak-test.js", "max_forks_repo_name": "jerryorr/client-testing", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 2, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 24.1304347826, "max_line_length": 61, "alphanum_fraction": 0.5873873874}
describe('fee.calc', function () {
  var assert = chai.assert

  it('taxes 10% on first $100', function () {
    assert.equal(fee.calc(50), 5)
    assert.equal(fee.calc(100), 10)
  })

  it('taxes 10% on first $100, 5% on the rest', function () {
    assert.equal(fee.calc(100.20), 10.01)
    assert.equal(fee.calc(200), 10 + 5)
  })

  it('does not tax less than $.01', function () {
    assert.equal(fee.calc(.01), .01)
  })

  it('rounds to nearest cent', function () {
    assert.equal(fee.calc(.11), .01)
    assert.equal(fee.calc(.19), .02)
  })
})
