{"size": 988, "ext": "js", "max_stars_repo_path": "__test__/Employee.test.js", "max_stars_repo_name": "allenharborth9835/Team-Profile-Generator-week-8-challenge", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "__test__/Employee.test.js", "max_issues_repo_name": "allenharborth9835/Team-Profile-Generator-week-8-challenge", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "__test__/Employee.test.js", "max_forks_repo_name": "allenharborth9835/Team-Profile-Generator-week-8-challenge", "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": 39.52, "max_line_length": 84, "alphanum_fraction": 0.6933198381}
const Employee = require('../lib/Employee.js');

test('creates a new employee', ()=>{
  const employee = new Employee("bob", 1,"asdfds");

  expect(employee.name).toBe("bob", 1,"asdfds");
  expect(employee.id).toEqual(expect.any(Number));
  expect(employee.email).toEqual(expect.any(String));
})
test('method to get employee name',()=>{
  const employee = new Employee("bob", 1,"asdfds");
  expect(employee.getName()).toEqual(expect.stringContaining("bob"));
})
test('method to get employee id',()=>{
  const employee = new Employee("bob", 1,"asdfds");
  expect(employee.getId()).toEqual(expect.stringContaining(employee.id.toString()));
})
test('method to get employee email',()=>{
  const employee = new Employee("bob", 1,"asdfds");
  expect(employee.getEmail()).toEqual(expect.stringContaining(employee.email));
})
test('method to get employee Role',()=>{
  const employee = new Employee("bob", 1,"asdfds");
  expect(employee.getRole()).toEqual(expect.stringContaining("Employee"));
})