{"size": 1168, "ext": "js", "max_stars_repo_path": "tests/intern.test.js", "max_stars_repo_name": "emdorgan/team-profile-generator", "max_stars_repo_stars_event_min_datetime": "2021-11-07T22:09:10.000Z", "max_stars_repo_stars_event_max_datetime": "2021-11-07T22:13:54.000Z", "max_issues_repo_path": "tests/intern.test.js", "max_issues_repo_name": "emdorgan/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": "emdorgan/team-profile-generator", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 2, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 34.3529411765, "max_line_length": 99, "alphanum_fraction": 0.5522260274}
const Intern = require("../lib/intern");

describe("Intern class", () => {
    it("Making a new instance of the class should return an object", () => {
        const obj = new Intern("", "2", "");

        expect(typeof(obj)).toBe("object");
    });
    it("Intern object should properly inherit ALL employee object proprerites and methods", () => {
        const name = "django";
        const id = "12";
        const email = "email";
        const obj = new Intern(name, id, email);
        
        expect(obj.name).toBe(name);
        expect(obj.id).toBe(id);
        expect(obj.email).toBe(email);
        expect(obj.getName()).toBe(name);
        expect(obj.getId()).toBe(id);
        expect(obj.getEmail()).toBe(email);
    });
    it("Should get an school if passed as the 4th argument and getSchool should return it", () => {
        const school = "rpi"
        const obj = new Intern("", "2", "", school);

        expect(obj.school).toBe(school);
        expect(obj.getSchool()).toBe(school);
    });
    it("Role should overwrite and be Intern", () => {
        const obj = new Intern();
        
        expect(obj.getRole()).toBe("Intern");
    });
});