From fc032401494a873ece73783488b56267ff35241d Mon Sep 17 00:00:00 2001 From: Johan Girod Date: Thu, 28 Jun 2018 17:01:31 +0200 Subject: [PATCH] :white_check_mark: fait passer les test concernant l'ajout de transport --- source/components/ResultView/Distribution.js | 1 - test/paySlipSelector.test.js | 5 +++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/source/components/ResultView/Distribution.js b/source/components/ResultView/Distribution.js index c22f71a55..de724ee83 100644 --- a/source/components/ResultView/Distribution.js +++ b/source/components/ResultView/Distribution.js @@ -60,7 +60,6 @@ class Distribution extends Component { const { répartition, cotisationMaximum, - réductionsDeCotisations, total, salaireChargé, salaireNet, diff --git a/test/paySlipSelector.test.js b/test/paySlipSelector.test.js index a2155df9b..71cd414fb 100644 --- a/test/paySlipSelector.test.js +++ b/test/paySlipSelector.test.js @@ -9,7 +9,8 @@ let state = { form: { conversation: { values: { - 'contrat salarié': { salaire: { 'brut de base': '2300' } } + 'contrat salarié': { salaire: { 'brut de base': '2300' } }, + entreprise: { effectif: '50' } } } }, @@ -41,7 +42,7 @@ describe('pay slip selector', function() { it('should sum all cotisations', function() { const montantTotalCotisations = paySlip.totalCotisations - expect(montantTotalCotisations.partPatronale).to.be.closeTo(919, 5) + expect(montantTotalCotisations.partPatronale).to.be.closeTo(992, 5) expect(montantTotalCotisations.partSalariale).to.be.closeTo(520, 5) })