{"size": 1101, "ext": "js", "max_stars_repo_path": "test/intern.test.js", "max_stars_repo_name": "AustinJoo97/Team-Profile-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": "AustinJoo97/Team-Profile-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": "AustinJoo97/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": 37.9655172414, "max_line_length": 129, "alphanum_fraction": 0.6312443233}
const Intern = require('../node/intern');

describe('arguments passed via super in Intern constructor', () => {
    it('should return new Intern name, id, and info', () => {
        const newIntern = new Intern('Sally', '000', 'SallyIntern@gmail.com', 'sally\'s school name')

        expect(newIntern.getName()).toEqual('Sally');

        expect(newIntern.getID()).toEqual('000');

        expect(newIntern.getEmail()).toEqual('SallyIntern@gmail.com');
    });
});

describe('.getGitHub() method', () => {
    it('should return the github handle of new instance of Intern', () => {
        const newIntern = new Intern('Sally', '000', 'SallyIntern@gmail.com', 'sally\'s school name')

        expect(newIntern.getSchool()).toEqual('sally\'s school name')
    })
})

describe('.getRole() method', () => {
    it('should return "Intern" as the role, overriding the inherited "Employee" role from extended Employee constructor', () => {
        const newIntern = new Intern('Sally', '000', 'SallyIntern@gmail.com', 'sally\'s school name')

        expect(newIntern.getRole()).toEqual('Intern')
    })
})