X-Git-Url: https://git.donarmstrong.com/?p=dactyl.git;a=blobdiff_plain;f=common%2Ftests%2Ffunctional%2FtestCommands.js;h=3382cd98b1dd2136a3d37adacc20d78bb4541be9;hp=2f986259556b4c1d8333ab7b49dd262bbd444093;hb=3d837eb266a3a01d424192aa4ec1a167366178c5;hpb=d8a3bcebff36df7b128b36e0b57b715479e155a0 diff --git a/common/tests/functional/testCommands.js b/common/tests/functional/testCommands.js index 2f98625..3382cd9 100644 --- a/common/tests/functional/testCommands.js +++ b/common/tests/functional/testCommands.js @@ -985,9 +985,9 @@ function _runCommands(cmdName, testName, commands) { }); } -function runTest(message, test) { +function runTest(message, test, ...args) { if (test) - var res = test.apply(null, Array.slice(arguments, runTest.length)); + var res = test.apply(null, args); if (res !== undefined) jumlib.assert(res, message); }