From b371e2c22c0d20b50f7d4d9863ef5b80552f44cb Mon Sep 17 00:00:00 2001 From: himeshr Date: Mon, 8 Apr 2024 17:28:07 +0530 Subject: [PATCH] avniproject/avni-client#1232 | Minor corrections in test values --- src/test/child/zScoreCalculatorTest.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/test/child/zScoreCalculatorTest.js b/src/test/child/zScoreCalculatorTest.js index 9a190ef..b482e6b 100644 --- a/src/test/child/zScoreCalculatorTest.js +++ b/src/test/child/zScoreCalculatorTest.js @@ -133,13 +133,13 @@ describe("zScoreCalculator", () => { assert.equal(zScore(individual, today, 10.5, 68.5).wfh, 3.04); individual.dateOfBirth = moment(today).subtract(35, 'months').toDate(); - assert.equal(zScore(individual, today, 7.1, 72).wfh, -3.02); - assert.equal(zScore(individual, today, 7.65, 72).wfh, -2.06); - assert.equal(zScore(individual, today, 8.3, 72).wfh, -1.02); - assert.equal(zScore(individual, today, 9.02, 72).wfh, 0); - assert.equal(zScore(individual, today, 9.8, 72).wfh, 0.99); - assert.equal(zScore(individual, today, 10.7, 72).wfh, 2); - assert.equal(zScore(individual, today, 11.7, 72).wfh, 3.01); + assert.equal(zScore(individual, today, 6.5, 68.5).wfh, -3.01); + assert.equal(zScore(individual, today, 7.0, 68.5).wfh, -2.04); + assert.equal(zScore(individual, today, 7.6, 68.5).wfh, -1); + assert.equal(zScore(individual, today, 8.2, 68.5).wfh, -0.06); + assert.equal(zScore(individual, today, 9.0, 68.5).wfh, 1.06); + assert.equal(zScore(individual, today, 9.8, 68.5).wfh, 2.04); + assert.equal(zScore(individual, today, 10.7, 68.5).wfh, 3.03); }); it("calculates weight for height z-scores for girls between 0 and 5", () => {