From b12981a3e716ccc622b55be7ae50d7d4cd6e4b64 Mon Sep 17 00:00:00 2001 From: Gregg Van Hove Date: Mon, 20 May 2019 17:17:55 -0700 Subject: [PATCH] build dist for rounding fix --- lib/jasmine-core/jasmine.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/jasmine-core/jasmine.js b/lib/jasmine-core/jasmine.js index f461a3bf..26b25192 100644 --- a/lib/jasmine-core/jasmine.js +++ b/lib/jasmine-core/jasmine.js @@ -4185,7 +4185,7 @@ getJasmineRequireObj().toBeCloseTo = function() { var maxDelta = Math.pow(10, -precision) / 2; return { - pass: Math.round(delta * pow) / pow <= maxDelta + pass: Math.round(delta * pow) <= maxDelta * pow }; } };