From 139a0002f7d8b69d55c212520f7082c39214cbf2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A1n=20S=C3=A1nchez=20Ortega?= Date: Mon, 22 May 2017 10:57:40 +0200 Subject: [PATCH] Fix typo in equalWithPrecision assertion Fixes https://github.com/mapbox/mapbox-gl-js/issues/4730 --- test/node_modules/mapbox-gl-js-test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/node_modules/mapbox-gl-js-test.js b/test/node_modules/mapbox-gl-js-test.js index d103aae6c4e..8ccc030257a 100644 --- a/test/node_modules/mapbox-gl-js-test.js +++ b/test/node_modules/mapbox-gl-js-test.js @@ -9,7 +9,7 @@ tap.Test.prototype.addAssert('equalWithPrecision', 3, assertEqualWithPrecision); function assertEqualWithPrecision(expected, actual, multiplier, message, extra) { message = message || `should be equal to within ${multiplier}`; const expectedRounded = Math.round(expected / multiplier) * multiplier; - const actualRounded = Math.round(expected / multiplier) * multiplier; + const actualRounded = Math.round(actual / multiplier) * multiplier; return this.equal(expectedRounded, actualRounded, message, extra); }