Skip to content

Commit f34100f

Browse files
committed
Fix tests
1 parent a4e8f44 commit f34100f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/specs/controller.bar.tests.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1593,8 +1593,9 @@ describe('Chart.controllers.bar', function() {
15931593
var meta = chart.getDatasetMeta(0);
15941594
var yScale = chart.scales[meta.yAxisID];
15951595

1596-
var categoryPercentage = yScale.options.categoryPercentage;
1597-
var barPercentage = yScale.options.barPercentage;
1596+
var config = meta.controller._config;
1597+
var categoryPercentage = config.categoryPercentage;
1598+
var barPercentage = config.barPercentage;
15981599
var stacked = yScale.options.stacked;
15991600

16001601
var totalBarHeight = 0;

0 commit comments

Comments
 (0)