diff --git a/test/core.helpers.tests.js b/test/core.helpers.tests.js index 0320a84aa..7a512da44 100644 --- a/test/core.helpers.tests.js +++ b/test/core.helpers.tests.js @@ -324,7 +324,7 @@ describe('Core helper tests', function() { it('should do a log10 operation', function() { expect(helpers.log10(0)).toBe(-Infinity); expect(helpers.log10(1)).toBe(0); - expect(helpers.log10(1000)).toBe(3); + expect(helpers.log10(1000)).toBeCloseTo(3, 1e-9); }); it('Should generate ids', function() {