mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
remove use of spread and default assignment
Original commit: elastic/kibana-plugin-helpers@17532f0fdd
This commit is contained in:
parent
3486e431ad
commit
b85a68df15
2 changed files with 8 additions and 2 deletions
|
@ -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]
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue