blob: f3446e5b4141600571c637b051c80b86115b74de [file] [log] [blame]
var extractFileName = function (path) {
if (path.split('/').length > 1) {
sep = '/';
} else if (path.split('\\').length > 1) {
sep = '\\';
} else {
throw new Error('ERROR: the separator in test result file path is neither "/" nor "\\".');
}
return path.split(sep).pop().split('.')[0];
};
module.exports = extractFileName;