From 487df7e19b932c97ae87aa292eadcf66ac710caa Mon Sep 17 00:00:00 2001 From: Alex | Kronox Date: Fri, 3 May 2024 14:05:37 +0200 Subject: [PATCH] change option generation --- report-viewer/tests/e2e/Distribution.spec.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/report-viewer/tests/e2e/Distribution.spec.ts b/report-viewer/tests/e2e/Distribution.spec.ts index 2c67614aa..e284578c6 100644 --- a/report-viewer/tests/e2e/Distribution.spec.ts +++ b/report-viewer/tests/e2e/Distribution.spec.ts @@ -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)