Skip to content

Commit 15e0dc7

Browse files
committed
Test adjustments and improvements.
* Reducing code duplication * Using import destructuring. * Ignoring integration test file output. * Changing package 'test' script to not use hashbang execution. * Explicitly requiring jake rather than relying on global import * Fixing integration tests to run on Windows. * Fixing no-sparse-arrays eslint error. * Fixing assertion param ordering * Making test tmp dir deletion/creation easier.
1 parent 1c481a0 commit 15e0dc7

20 files changed

+1758
-1121
lines changed

lib/task/task.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ class Task extends EventEmitter {
420420

421421
_getParams() {
422422
if (!this.action) return "";
423-
let params = (new RegExp('(?:'+this.action.name+'\\s*|^)\\s*\\((.*?)\\)').exec(this.action.toString().replace(/\n/g, '')) || [,''])[1].replace(/\/\*.*?\*\//g, '').replace(/ /g, '');
423+
let params = (new RegExp('(?:'+this.action.name+'\\s*|^)\\s*\\((.*?)\\)').exec(this.action.toString().replace(/\n/g, '')) || [''])[1].replace(/\/\*.*?\*\//g, '').replace(/ /g, '');
424424
return params;
425425
}
426426

0 commit comments

Comments
 (0)