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