{"size": 450, "ext": "js", "max_stars_repo_path": "src/libs/getStrTimes.test.js", "max_stars_repo_name": "stacon/fight-cli-representation", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/libs/getStrTimes.test.js", "max_issues_repo_name": "stacon/fight-cli-representation", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/libs/getStrTimes.test.js", "max_forks_repo_name": "stacon/fight-cli-representation", "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": 32.1428571429, "max_line_length": 86, "alphanum_fraction": 0.58}
const {getStrTimes} = require('.');
const expect = require('expect');

describe('getStrTimes', () => {
    it('should return the str "lalos" 5 times', () => {
        // THEN
        expect(getStrTimes('lalos', 5)).toEqual('laloslaloslaloslaloslalos');
    });

    it('should return the str "lalos" 5 times delimetered with /', () => {
        // THEN
        expect(getStrTimes('lalos', 5, "/")).toEqual('lalos/lalos/lalos/lalos/lalos');
    });
})