diff --git a/app/static/src/app/components/options/SensitivityOptions.vue b/app/static/src/app/components/options/SensitivityOptions.vue index dd7d536f9..dac20a016 100644 --- a/app/static/src/app/components/options/SensitivityOptions.vue +++ b/app/static/src/app/components/options/SensitivityOptions.vue @@ -35,7 +35,7 @@ + :param-name="settings.parameterToVary">
diff --git a/app/static/tests/unit/components/options/sensitivityOptions.test.ts b/app/static/tests/unit/components/options/sensitivityOptions.test.ts index 0e42bc724..c3e61c1c3 100644 --- a/app/static/tests/unit/components/options/sensitivityOptions.test.ts +++ b/app/static/tests/unit/components/options/sensitivityOptions.test.ts @@ -23,15 +23,25 @@ const mockTooltipDirective = jest.fn(); describe("SensitivityOptions", () => { const mockBatchPars = { varying: [{ - name: "B", + name: "A", values: [1, 2, 3] }] } as any; const mockMultiBatchPars = [ mockBatchPars, - { name: "B", values: [4, 5] }, - { name: "C", values: [6, 7, 8] } + { + varying: [{ + name: "B", + values: [4, 5] + }] + }, + { + varying: [{ + name: "C", + values: [6, 7, 8] + }] + } ] as any; const mockSensitivitySetParamSettings = jest.fn(); diff --git a/app/static/tests/unit/store/multiSensitivity/getters.test.ts b/app/static/tests/unit/store/multiSensitivity/getters.test.ts index 9cc6eb6ef..0486b790a 100644 --- a/app/static/tests/unit/store/multiSensitivity/getters.test.ts +++ b/app/static/tests/unit/store/multiSensitivity/getters.test.ts @@ -53,8 +53,18 @@ describe("MultiSensitivity getters", () => { const result = getters[MultiSensitivityGetter.multiBatchPars](state, getters, rootState, {} as any); expect(result).toStrictEqual([ - { name: "A", values: [1, 2, 3], base: parameterValues }, - { name: "B", values: [1, 2, 3, 4, 5], base: parameterValues } + { + varying: [ + { name: "A", values: [1, 2, 3] } + ], + base: parameterValues + }, + { + varying: [ + { name: "B", values: [1, 2, 3, 4, 5] } + ], + base: parameterValues + } ]); expect(mockSpyDisplace).toHaveBeenCalledTimes(1); expect(mockSpyRange).toHaveBeenCalledTimes(1);