{"size": 967, "ext": "js", "max_stars_repo_path": "__test__/Employee.test.js", "max_stars_repo_name": "elenamagay/team-profile-generator", "max_stars_repo_stars_event_min_datetime": "2021-06-04T05:46:14.000Z", "max_stars_repo_stars_event_max_datetime": "2021-06-04T05:46:14.000Z", "max_issues_repo_path": "__test__/Employee.test.js", "max_issues_repo_name": "elenamagay/team-profile-generator", "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": "elenamagay/team-profile-generator", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 35.8148148148, "max_line_length": 85, "alphanum_fraction": 0.5356773526}
const Employee = require ("../lib/Employee");

describe("Employee", ()=> {
    describe ("function getName", ()=> {
        it("should return an employee's name", () => {
            const employee = new Employee ("Elena", "1", "elenamagay1985@gmail.com");
            const myName = employee.getName();
            expect(myName).toEqual("Elena");
        })
    });

    describe ("function getId", ()=> {
        it("should return an employee's name", () => {
            const employee = new Employee ("Elena", "1", "elenamagay1985@gmail.com");
            const myId = employee.getId();
            expect(myId).toEqual("1");
        })
    })

    describe ("function getEmail", ()=> {
        it("should return an employee's name", () => {
            const employee = new Employee ("Elena", "1", "elenamagay1985@gmail.com");
            const myEmail = employee.getEmail();
            expect(myEmail).toEqual("elenamagay1985@gmail.com");
        })
    })
})