From: etimberg Date: Sat, 24 Oct 2015 02:11:59 +0000 (-0400) Subject: Fix tests affected by changes to default label formatter X-Git-Tag: 2.0.0-beta~2^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F1567%2Fhead;p=thirdparty%2FChart.js.git Fix tests affected by changes to default label formatter --- diff --git a/test/controller.bar.tests.js b/test/controller.bar.tests.js index b9d4eb4df..fc6308f56 100644 --- a/test/controller.bar.tests.js +++ b/test/controller.bar.tests.js @@ -262,7 +262,7 @@ describe('Bar controller tests', function() { expect(bar1._xScale).toBe(chart.scales.firstXScaleID); expect(bar1._yScale).toBe(chart.scales.firstYScaleID); expect(bar1._model).toEqual({ - x: 113.60000000000001, + x: 103.60000000000001, y: 194, label: 'label1', datasetLabel: 'dataset2', @@ -279,8 +279,8 @@ describe('Bar controller tests', function() { expect(bar2._xScale).toBe(chart.scales.firstXScaleID); expect(bar2._yScale).toBe(chart.scales.firstYScaleID); expect(bar2._model).toEqual({ - x: 151.60000000000002, - y: -15, + x: 141.6, + y: 6, label: 'label2', datasetLabel: 'dataset2',