{"size": 1395, "ext": "js", "max_stars_repo_path": "tests/Employee.test.js", "max_stars_repo_name": "vanjungthawng/Team-Profile-Generator", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "tests/Employee.test.js", "max_issues_repo_name": "vanjungthawng/Team-Profile-Generator", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "tests/Employee.test.js", "max_forks_repo_name": "vanjungthawng/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": 21.796875, "max_line_length": 46, "alphanum_fraction": 0.5304659498}
const Employee = require("../lib/Employee");

describe("Employee Class", () => {
  describe("getName Method", () => {
    it("should return employee name", () => {
      const newEmployee = new Employee(
        "Van Zaathang",
        "94854",
        "vanzt@gmail.com"
      );
      const name = "Van Zaathang";

      const result = newEmployee.getName();

      expect(result).toEqual(name);
    });
  });

  describe("getID Method", () => {
    it("should return employee ID", () => {
      const newEmployee = new Employee(
        "Van Zaathang",
        "94854",
        "vanzt@gmail.com"
      );
      const id = "94854";

      const result = newEmployee.getId();

      expect(result).toEqual(id);
    });
  });

  describe("getEmail Method", () => {
    it("should return employee Email", () => {
      const newEmployee = new Employee(
        "Van Zaathang",
        "94854",
        "vanzt@gmail.com"
      );
      const email = "vanzt@gmail.com";

      const result = newEmployee.getEmail();

      expect(result).toEqual(email);
    });
  });

  describe("getRole Method", () => {
    it("should return employee role", () => {
      const newEmployee = new Employee(
        "Van Zaathang",
        "94854",
        "vanzt@gmail.com"
      );
      const role = "Employee";

      const result = newEmployee.getRole();

      expect(result).toEqual(role);
    });
  });
});
