Skip to content

Commit

Permalink
change option generation
Browse files Browse the repository at this point in the history
  • Loading branch information
Kr0nox committed May 3, 2024
1 parent d091182 commit 487df7e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions report-viewer/tests/e2e/Distribution.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ function getTestCombinations() {
['Linear', 'Logarithmic']
]

const combinations: string[][] = []

const baseOptions = options.map((o) => o[0])
const combinations: string[][] = [baseOptions]

for (let i = 0; i < options.length; i++) {
for (let j = 0; j < options[i].length; j++) {
for (let j = 1; j < options[i].length; j++) {
const combination = Array.from(baseOptions)
combination[i] = options[i][j]
combinations.push(combination)
Expand Down

0 comments on commit 487df7e

Please sign in to comment.