{"size": 848, "ext": "js", "max_stars_repo_path": "__test__/Intern.test.js", "max_stars_repo_name": "SowmyaNagayya/team-generator", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "__test__/Intern.test.js", "max_issues_repo_name": "SowmyaNagayya/team-generator", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "__test__/Intern.test.js", "max_forks_repo_name": "SowmyaNagayya/team-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": 27.3548387097, "max_line_length": 82, "alphanum_fraction": 0.5613207547}
const Employee = require('../lib/Employee');
const Intern = require('../lib/Intern.js');

describe("Intern class",()=> {
    //act
    let intern = new Intern("Ram",3333,"ram@gmail.com","University of Minnesota");
    it("creates intern object", () => {
        //assert
        expect(intern).toEqual(expect.any(Object));
    });

    it("Intern has correct Name",()=> {
        expect(intern.getName()).toBe("Ram");
    });

    it("Intern has correct id",()=> {
        expect(intern.getId()).toBe(3333);
    });

    it("Intern has correct email",()=> {
        expect(intern.getEmail()).toBe("ram@gmail.com");
    });

    it("Intern has correct school Name",()=> {
        expect(intern.getSchool()).toBe("University of Minnesota");
    });

    it("Intern has correct role",()=> {
        expect(intern.getRole()).toBe("Intern");
    });
});