]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Fix tests 1742/head
authorEvert Timberg <evert.timberg@gmail.com>
Sat, 5 Dec 2015 14:55:17 +0000 (09:55 -0500)
committerEvert Timberg <evert.timberg@gmail.com>
Sat, 5 Dec 2015 14:55:17 +0000 (09:55 -0500)
test/controller.doughnut.tests.js

index 29811e1117b4a66837921d9b242ef73f943e5ee9..38a34bfe77b6cac2803a228be04d92e9e9057d8f 100644 (file)
@@ -103,36 +103,40 @@ describe('Doughnut controller tests', function() {
                        x: 50,
                        y: 100,
                        startAngle: Math.PI * -0.5,
+                       endAngle: Math.PI * -0.5,
                        circumference: 2.166614539857563,
                        outerRadius: 49,
-                       innerRadius: 36.75,
+                       innerRadius: 36.75
                });
 
                expect(chart.data.datasets[1].metaData[1]._model).toEqual({
                        x: 50,
                        y: 100,
                        startAngle: Math.PI * -0.5,
+                       endAngle: Math.PI * -0.5,
                        circumference: 3.2499218097863447,
                        outerRadius: 49,
-                       innerRadius: 36.75,
+                       innerRadius: 36.75
                });
 
                expect(chart.data.datasets[1].metaData[2]._model).toEqual({
                        x: 50,
                        y: 100,
                        startAngle: Math.PI * -0.5,
+                       endAngle: Math.PI * -0.5,
                        circumference: 0,
                        outerRadius: 49,
-                       innerRadius: 36.75,
+                       innerRadius: 36.75
                });
 
                expect(chart.data.datasets[1].metaData[3]._model).toEqual({
                        x: 50,
                        y: 100,
                        startAngle: Math.PI * -0.5,
+                       endAngle: Math.PI * -0.5,
                        circumference: 0.8666458159430251,
                        outerRadius: 49,
-                       innerRadius: 36.75,
+                       innerRadius: 36.75
                });
 
                controller.update();