From f35575a1b1db08ad1bde8ce1e4d7af579bde0747 Mon Sep 17 00:00:00 2001 From: Jonathan Niles Date: Wed, 2 Dec 2020 06:26:56 +0100 Subject: [PATCH] fix(stock): adjust CMM tests december Fixes the fact that we have some months with 30 days and others with 31 days. --- test/integration-stock/depots.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/integration-stock/depots.js b/test/integration-stock/depots.js index 774fd87e91..0105be8eba 100644 --- a/test/integration-stock/depots.js +++ b/test/integration-stock/depots.js @@ -94,16 +94,16 @@ describe('(/depots) The depots API ', () => { res = await agent.get(`/depots/${principal}/inventories/${ampicilline}/cmm`); values = { - algo1 : 33.39, + algo1 : 33.27, algo2 : 1143.75, algo3 : 24.93, - algo_msh : 33.52, + algo_msh : 33.39, sum_days : 367, - sum_stock_day : 274, + sum_stock_day : 275, sum_consumption_day : 8, sum_consumed_quantity : 300, number_of_month : 12, - sum_stock_out_days : 93, + sum_stock_out_days : 92, days_before_consumption : 0, };