{"size": 633, "ext": "js", "max_stars_repo_path": "tests/Intern.test.js", "max_stars_repo_name": "Neeko623/Team-Profile-Generator", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "tests/Intern.test.js", "max_issues_repo_name": "Neeko623/Team-Profile-Generator", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "tests/Intern.test.js", "max_forks_repo_name": "Neeko623/Team-Profile-Generator", "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": 23.4444444444, "max_line_length": 59, "alphanum_fraction": 0.6571879937}
const Intern = require("lib/Intern.js");

test("creates an intern object", () => {
  const employee = new Intern(
    "Neeko",
    100,
    "neeko_tvxq@hotmail.com",
    "University of Toronto"
  );

  expect(employee.name).toEqual(expect.any(String));
  expect(employee.id).toEqual(expect.any(Number));
  expect(employee.email).toStrictEqual(expect.any(String));
  expect(employee.school).toEqual(expect.any(String));
});

test("get the employee's role", () => {
  const employee = new Intern(
    "Neeko",
    100,
    "neeko_tvxq@hotmail.com",
    "University of Toronto"
  );

  expect(employee.getRole()).toEqual("Intern");
});
