Skip to content

Commit

Permalink
Test adjustments and improvements.
Browse files Browse the repository at this point in the history
* 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.
  • Loading branch information
Tzrlk committed Apr 15, 2023
1 parent 1c481a0 commit 15e0dc7
Show file tree
Hide file tree
Showing 20 changed files with 1,758 additions and 1,121 deletions.
2 changes: 1 addition & 1 deletion lib/task/task.js
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ class Task extends EventEmitter {

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

Expand Down

0 comments on commit 15e0dc7

Please sign in to comment.