From f1ffc3fd39179b1799946bbf880ae143d9d7ef94 Mon Sep 17 00:00:00 2001 From: Ankush Menat Date: Mon, 18 Sep 2023 11:42:21 +0530 Subject: [PATCH] test: fix bankers rounding test One more `null` needs to be passed for "not passing precision" --- cypress/integration/rounding.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cypress/integration/rounding.js b/cypress/integration/rounding.js index 1a9cfa685b..f778e009bb 100644 --- a/cypress/integration/rounding.js +++ b/cypress/integration/rounding.js @@ -49,7 +49,7 @@ context("Rounding behaviour", () => { let rounding_method = "Banker's Rounding"; expect(flt("0.5", 0, null, rounding_method)).eq(0); - expect(flt("0.3", null, rounding_method)).eq(0.3); + expect(flt("0.3", null, null, rounding_method)).eq(0.3); expect(flt("1.5", 0, null, rounding_method)).eq(2);