remove use of spread and default assignment

Original commit: elastic/kibana-plugin-helpers@17532f0fdd
This commit is contained in:
Joe Fleming 2016-12-14 17:02:49 -07:00
parent 3486e431ad
commit b85a68df15
2 changed files with 8 additions and 2 deletions

View file

@ -2,7 +2,12 @@ module.exports = function (plugin, command) {
var execFileSync = require('child_process').execFileSync;
var cmd = (process.platform === 'win32') ? 'bin\\kibana.bat' : 'bin/kibana';
var args = ['--dev', '--plugin-path', plugin.root, ...command.unkownOptions];
var args = ['--dev', '--plugin-path', plugin.root];
if (command.unkownOptions) {
args = args.concat(command.unkownOptions);
}
execFileSync(cmd, args, {
cwd: plugin.kibanaRoot,
stdio: ['ignore', 1, 2]

View file

@ -1,5 +1,6 @@
module.exports = function (plugin, opts = {}) {
module.exports = function testBrowserAction(plugin, run, opts) {
var execFileSync = require('child_process').execFileSync;
opts = opts || {};
var kbnServerArgs = [
'--kbnServer.testsBundle.pluginId=' + plugin.id,