From fbdd7eba86cd8be2c996bbeb46204506cb869104 Mon Sep 17 00:00:00 2001 From: Johan Girod Date: Wed, 8 Jan 2020 11:29:19 +0100 Subject: [PATCH] =?UTF-8?q?:green=5Fheart:=20r=C3=A9pare=20les=20tests=20d?= =?UTF-8?q?e=20non=20regression?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mon-entreprise.fr/middlewares/trackSimulatorActions.ts | 4 +--- test/ficheDePaieSelector.test.js | 4 +--- test/regressions/__snapshots__/simulations.jest.js.snap | 4 ++-- 3 files changed, 4 insertions(+), 8 deletions(-) diff --git a/source/sites/mon-entreprise.fr/middlewares/trackSimulatorActions.ts b/source/sites/mon-entreprise.fr/middlewares/trackSimulatorActions.ts index ab9f90fbe..b5837350f 100644 --- a/source/sites/mon-entreprise.fr/middlewares/trackSimulatorActions.ts +++ b/source/sites/mon-entreprise.fr/middlewares/trackSimulatorActions.ts @@ -22,9 +22,7 @@ export default (tracker: Tracker) => { 'trackEvent', 'Simulator', 'simulation completed', - 'after ' + - newState.conversationSteps.foldedSteps.length + - ' questions' + 'after ' + newState.simulation.foldedSteps.length + ' questions' ]) } } diff --git a/test/ficheDePaieSelector.test.js b/test/ficheDePaieSelector.test.js index 00334e0dc..ee94e05d5 100644 --- a/test/ficheDePaieSelector.test.js +++ b/test/ficheDePaieSelector.test.js @@ -14,9 +14,7 @@ let state = { situation: { 'contrat salarié . rémunération . brut de base': '2300', 'entreprise . effectif': '50' - } - }, - conversationSteps: { + }, foldedSteps: [] } } diff --git a/test/regressions/__snapshots__/simulations.jest.js.snap b/test/regressions/__snapshots__/simulations.jest.js.snap index da9061698..9a2351ace 100644 --- a/test/regressions/__snapshots__/simulations.jest.js.snap +++ b/test/regressions/__snapshots__/simulations.jest.js.snap @@ -12,9 +12,9 @@ exports[`calculate simulations-artiste-auteur: salarié 2`] = `"[1603]"`; exports[`calculate simulations-artiste-auteur: salarié 3`] = `"[12410]"`; -exports[`calculate simulations-auto-entrepreneur: aides 1`] = `"[5538,538,5000,0,5000]"`; +exports[`calculate simulations-auto-entrepreneur: aides 1`] = `"[5348,348,5000,0,5000]"`; -exports[`calculate simulations-auto-entrepreneur: aides 2`] = `"[55380,5380,50000,181,49819]"`; +exports[`calculate simulations-auto-entrepreneur: aides 2`] = `"[53485,3485,50000,93,49907]"`; exports[`calculate simulations-auto-entrepreneur: impôt sur le revenu 1`] = `"[32092,7092,25000,706,24294]"`;