From 89da20354ca26980a772eed2d6976f0da467909d Mon Sep 17 00:00:00 2001 From: Evert Timberg Date: Sat, 5 Dec 2015 09:55:17 -0500 Subject: [PATCH] Fix tests --- test/controller.doughnut.tests.js | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/test/controller.doughnut.tests.js b/test/controller.doughnut.tests.js index 29811e111..38a34bfe7 100644 --- a/test/controller.doughnut.tests.js +++ b/test/controller.doughnut.tests.js @@ -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(); -- 2.47.2