diff --git a/source/components/TargetSelection.js b/source/components/TargetSelection.js index 4e8c44663..4c84c32d4 100644 --- a/source/components/TargetSelection.js +++ b/source/components/TargetSelection.js @@ -22,6 +22,7 @@ import CurrencyInput from './CurrencyInput/CurrencyInput' import ProgressCircle from './ProgressCircle' import './TargetSelection.css' import emoji from 'react-easy-emoji' +import { mainTargetNames } from '../config' let salaries = [ 'contrat salarié . salaire . total', diff --git a/source/config.js b/source/config.js index a0624279b..a41ac9e7f 100644 --- a/source/config.js +++ b/source/config.js @@ -1,5 +1,5 @@ // Each one will be a line in the simulation box -let mainTargetNames = [ +export let mainTargetNames = [ 'contrat salarié . rémunération . total', 'contrat salarié . salaire . brut de base', 'contrat salarié . salaire . net', diff --git a/test/ficheDePaieSelector.test.js b/test/ficheDePaieSelector.test.js index 919772311..b18a6599c 100644 --- a/test/ficheDePaieSelector.test.js +++ b/test/ficheDePaieSelector.test.js @@ -5,7 +5,7 @@ import FicheDePaieSelectors, { COTISATION_BRANCHE_ORDER } from 'Selectors/ficheDePaieSelectors' -import { simulationTargetNames } from 'Components/TargetSelection' +import { simulationTargetNames } from '../source/config' let state = { form: {