]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Fix tests affected by changes to default label formatter 1567/head
authoretimberg <evert.timberg@gmail.com>
Sat, 24 Oct 2015 02:11:59 +0000 (22:11 -0400)
committeretimberg <evert.timberg@gmail.com>
Sat, 24 Oct 2015 02:11:59 +0000 (22:11 -0400)
test/controller.bar.tests.js

index b9d4eb4df2ce53465614662b994d9405510ce33c..fc6308f56b82171e1b3398115e5519840891f38c 100644 (file)
@@ -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',