# all files / cli/init/ set-up-selenium.js

100% Statements 15/15
100% Branches 4/4
100% Functions 3/3
100% Lines 5/5
1 branch Ignored

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20

    1

    1
    2
    2

     'use strict';

    // Constants:
    import constants from '../../constants';

    // Utilities:
    import { promisifyAll } from 'bluebird';
    const childProcess = promisifyAll(require('child_process'));
    import log from 'npmlog';

    export default {
        run: setUpSelenium
    };

    function setUpSelenium () {
        log.info('Setting up Selenium...');
        return childProcess.execAsync(constants.SELENIUM_UPDATE_COMMAND)
        .then(() => log.verbose('Selenium setup complete.'));
    }