From: Evert Timberg Date: Sat, 31 Oct 2015 17:10:06 +0000 (-0400) Subject: Fix old scaleService tests that are now testing the layoutService X-Git-Tag: 2.0.0-beta2~25^2~27 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=29002b2efbdbbc4fc452b8d820722d31c9619e53;p=thirdparty%2FChart.js.git Fix old scaleService tests that are now testing the layoutService --- diff --git a/test/core.layoutService.tests.js b/test/core.layoutService.tests.js index 3ea3e8a5b..7068fb81c 100644 --- a/test/core.layoutService.tests.js +++ b/test/core.layoutService.tests.js @@ -1,5 +1,5 @@ // Tests of the scale service -describe('Test the scale service', function() { +describe('Test the layout service', function() { it('should fit a simple chart with 2 scales', function() { var chartInstance = { scales: [], @@ -39,7 +39,7 @@ describe('Test the scale service', function() { var canvasWidth = 250; var canvasHeight = 150; - Chart.scaleService.update(chartInstance, canvasWidth, canvasHeight); + Chart.layoutService.update(chartInstance, canvasWidth, canvasHeight); expect(chartInstance.chartArea).toEqual({ left: 45, @@ -103,7 +103,7 @@ describe('Test the scale service', function() { var canvasWidth = 250; var canvasHeight = 150; - Chart.scaleService.update(chartInstance, canvasWidth, canvasHeight); + Chart.layoutService.update(chartInstance, canvasWidth, canvasHeight); expect(chartInstance.chartArea).toEqual({ left: 5, @@ -176,7 +176,7 @@ describe('Test the scale service', function() { var canvasWidth = 250; var canvasHeight = 150; - Chart.scaleService.update(chartInstance, canvasWidth, canvasHeight); + Chart.layoutService.update(chartInstance, canvasWidth, canvasHeight); expect(chartInstance.chartArea).toEqual({ left: 95, @@ -238,7 +238,7 @@ describe('Test the scale service', function() { var canvasWidth = 300; var canvasHeight = 350; - Chart.scaleService.update(chartInstance, canvasWidth, canvasHeight); + Chart.layoutService.update(chartInstance, canvasWidth, canvasHeight); expect(chartInstance.chartArea).toEqual({ left: 5,