selenium-standalone
Version:
installs a `selenium-standalone` command line to install and start a standalone selenium server
18 lines (14 loc) • 370 B
JavaScript
module.exports = checkPathsExistence;
const fse = require('fs-extra');
async function checkPathsExistence(paths) {
const pathValues = Object.keys(paths).map((key) => {
return paths[key];
});
return Promise.all(
pathValues.map(async (path) => {
if (!(await fse.pathExists(path))) {
throw new Error('Missing ' + path);
}
})
);
}