]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Fix tests 1628/head
authorEvert Timberg <evert.timberg@gmail.com>
Sat, 7 Nov 2015 14:40:41 +0000 (09:40 -0500)
committerEvert Timberg <evert.timberg@gmail.com>
Sat, 7 Nov 2015 14:40:41 +0000 (09:40 -0500)
test/core.helpers.tests.js

index 0320a84aa57be2cf4e039b4f83062b92a06b409d..7a512da44589fc7fca061ca336a3f3a698157ccb 100644 (file)
@@ -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() {