Skip to content

Commit

Permalink
fix: array filters passed to TestProcess were not processed properly (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien-R44 committed May 6, 2022
1 parent 06fd6a6 commit f7a3069
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/Test/process.ts
Expand Up @@ -40,12 +40,14 @@ export class TestProcess {
const filters = Object.keys(this.filters).reduce<string[]>((result, filter) => {
const value = this.filters[filter]

if (filter !== '_') {
result.push(filter)
if (filter === '_') {
result.push(...value)
return result
}

result.push(filter)
if (Array.isArray(value)) {
result.push(...value)
result.push(value.join(','))
} else {
result.push(value)
}
Expand Down

0 comments on commit f7a3069

Please sign in to comment.