From 6a78e381872f814dd4e5e990dac37c036cc60411 Mon Sep 17 00:00:00 2001 From: Jakob Langdal Date: Wed, 27 Sep 2023 16:41:49 +0000 Subject: [PATCH] Use experiment types for constraints --- .../context/experiment/experiment-selectors.test.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/core/src/context/experiment/experiment-selectors.test.ts b/packages/core/src/context/experiment/experiment-selectors.test.ts index 0fcf5179..6a18477e 100644 --- a/packages/core/src/context/experiment/experiment-selectors.test.ts +++ b/packages/core/src/context/experiment/experiment-selectors.test.ts @@ -9,7 +9,7 @@ import { } from './experiment-selectors' import { rootReducer } from './reducers' import { createDataPoints } from './test-utils' -import { ConstraintTypeEnum } from '@boostv/process-optimizer-frontend-api' +import { ExperimentType } from '@core/common' describe('Experiment selectors', () => { let state: State @@ -66,9 +66,9 @@ describe('Experiment selectors', () => { }) describe('selectIsSuggestionCountEditable', () => { - const constraints = [ + const constraints: ExperimentType['constraints'] = [ { - type: ConstraintTypeEnum.Sum, + type: 'sum', dimensions: ['a', 'b'], value: 100, }, @@ -108,9 +108,9 @@ describe('Experiment selectors', () => { describe('selectCalculatedSuggestionCount', () => { const suggestionCount = 5 - const constraints = [ + const constraints: ExperimentType['constraints'] = [ { - type: ConstraintTypeEnum.Sum, + type: 'sum', dimensions: ['a', 'b'], value: 100, },