{"size": 1210, "ext": "js", "max_stars_repo_path": "__tests__/human.test.js", "max_stars_repo_name": "Cruduper/galactic-age", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "__tests__/human.test.js", "max_issues_repo_name": "Cruduper/galactic-age", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "__tests__/human.test.js", "max_forks_repo_name": "Cruduper/galactic-age", "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": 24.2, "max_line_length": 104, "alphanum_fraction": 0.579338843}
import Human from './../src/js/human.js';

describe('Human', () => {

  let hum;
  beforeEach(() => {
    hum = new Human("myname", 28, false, 100, 100, 100, 100);
  });

  test('should construct a human object sans the lifeExpect property', () =>{
    expect( hum.name).toEqual("myname");
    expect( hum.age ).toEqual(28);
    expect( hum.smoker).toEqual(false);
    expect( hum.activityLvl).toEqual(100);
    expect( hum.combatLvl).toEqual(100);
    expect( hum.intelliLvl).toEqual(100);
    expect( hum.radProtect).toEqual(100);
  });

  test('should get a value for life expectancy when smoker === false', () =>{
    
    expect(hum.calcLifeExpect()).toEqual(100);
  });

  test('should get a value for life expectancy when smoker === true', () =>{
    hum.smoker = true;
    expect(hum.calcLifeExpect()).toEqual(85);
  });

  test("planetaryAge() method should convert earth age into age of a given planet's solar years", () =>{
    
    expect( hum.planetaryAge( hum.age, "mars") ).toEqual(14);
  });


  // test('should ', () =>{

  //   expect().toEqual();
  // });

  // test('should ', () =>{

  //   expect().toEqual();
  // });

  // test('should ', () =>{

  //   expect().toEqual();
  // });
});