From 626b06eb1fc215ff9e48443e8cdd3f0eb6fef0b7 Mon Sep 17 00:00:00 2001 From: Chris Langhout Date: Fri, 25 Nov 2022 13:59:43 +0100 Subject: [PATCH] chore: add extra test case to make the boundary more clear Signed-off-by: Chris Langhout --- .../cost-insights/src/components/CostGrowth/CostGrowth.test.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/cost-insights/src/components/CostGrowth/CostGrowth.test.tsx b/plugins/cost-insights/src/components/CostGrowth/CostGrowth.test.tsx index dfc18cb025..3da7af90fb 100644 --- a/plugins/cost-insights/src/components/CostGrowth/CostGrowth.test.tsx +++ b/plugins/cost-insights/src/components/CostGrowth/CostGrowth.test.tsx @@ -119,6 +119,8 @@ describe.each` ${ChangeThreshold.upper} | ${0.5} | ${0.000001} | ${'less than an engineer'} ${ChangeThreshold.upper} | ${0.5} | ${0.5} | ${'Negligible'} ${3} | ${500_000} | ${0} | ${`300% or ~30 engineers`} + ${3} | ${500_000} | ${0.5} | ${`300% or ~30 engineers`} + ${3} | ${500_000} | ${29} | ${'300% or ~30 engineers'} ${3} | ${500_000} | ${30} | ${'Negligible'} `('', ({ ratio, amount, threshold, expected }) => { it(`should display the correct difference the threshold is different. ratio: ${ratio} threshold:${threshold} expected:${expected}`, async () => {