Skip to content

Commit

Permalink
Use experiment types for constraints
Browse files Browse the repository at this point in the history
  • Loading branch information
langdal committed Sep 27, 2023
1 parent 32ef44e commit 6a78e38
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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,
},
Expand Down Expand Up @@ -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,
},
Expand Down

0 comments on commit 6a78e38

Please sign in to comment.