From 5680001c4e463dd3ea433ac7550fdfbb3efedbca Mon Sep 17 00:00:00 2001 From: Mantra Date: Wed, 6 Nov 2024 12:18:17 +0000 Subject: [PATCH] less code dup --- .../sensitivity/sensitivityTracesPlot.test.ts | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/app/static/tests/unit/components/sensitivity/sensitivityTracesPlot.test.ts b/app/static/tests/unit/components/sensitivity/sensitivityTracesPlot.test.ts index e2b437e8..fbce7b2d 100644 --- a/app/static/tests/unit/components/sensitivity/sensitivityTracesPlot.test.ts +++ b/app/static/tests/unit/components/sensitivity/sensitivityTracesPlot.test.ts @@ -458,20 +458,7 @@ describe("SensitivityTracesPlot", () => { paramSettings: { parameterToVary: "alpha" }, - result: { - batch: { - solutions: sensitivityHasSolutions ? mockSolutions : null, - allFitData: sensitivityHasData ? mockAllFitData : undefined, - pars: { - varying: [ - { - name: "alpha", - values: [1.11111, 2.22222] - } - ] - } - } - }, + result: getMockResult(sensitivityHasSolutions, sensitivityHasData), parameterSetResults: hasParameterSets ? mockParameterSetResults : {} }, mutations: {