test: fix bankers rounding test

One more `null` needs to be passed for "not passing precision"
This commit is contained in:
Ankush Menat 2023-09-18 11:42:21 +05:30
parent 7b91df0db6
commit f1ffc3fd39

View file

@ -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);