{"size": 420, "ext": "js", "max_stars_repo_path": "src/cmd/upload/index.spec.js", "max_stars_repo_name": "Ahmed-Elkollaly/nexus-migration", "max_stars_repo_stars_event_min_datetime": "2021-03-18T19:56:31.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-23T03:53:22.000Z", "max_issues_repo_path": "src/cmd/upload/index.spec.js", "max_issues_repo_name": "Ahmed-Elkollaly/nexus-migration", "max_issues_repo_issues_event_min_datetime": "2020-07-20T07:36:59.000Z", "max_issues_repo_issues_event_max_datetime": "2021-05-28T05:44:22.000Z", "max_forks_repo_path": "src/cmd/upload/index.spec.js", "max_forks_repo_name": "Ahmed-Elkollaly/nexus-migration", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 8, "max_issues_count": 11, "max_forks_count": null, "avg_line_length": 35.0, "max_line_length": 105, "alphanum_fraction": 0.6285714286}
import {_getFileNameFromPath} from './';

describe('Download', () => {
    describe('#_getFileNameFromPath', () => {
        it('should return the last portion of the file path', () => {
           const filePath = 'pool/universe/c/containerd/containerd_1.3.3-0ubuntu1~18.04.2_amd64.deb';

           expect(_getFileNameFromPath(filePath)).toEqual('containerd_1.3.3-0ubuntu1~18.04.2_amd64.deb');
        });
    });
});
