Skip to content

Commit

Permalink
Update scale.linear.tests.js
Browse files Browse the repository at this point in the history
  • Loading branch information
teroman committed Jun 19, 2018
1 parent a5740e0 commit 998840c
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions test/specs/scale.linear.tests.js
Expand Up @@ -906,7 +906,7 @@ describe('Linear Scale', function() {
expect(chart.scales['x-axis-0'].max).toEqual(21);
});

it('max setting should be used if it set to zero', function() {
it('min/max/stepSize settings should be used if set to zero', function() {
var barData = {
labels: ['S1', 'S2', 'S3'],
datasets: [{
Expand All @@ -924,14 +924,17 @@ describe('Linear Scale', function() {
scales: {
xAxes: [{
ticks: {
min: -3000,
max: 0
min: 0,
max: 0,
stepSize: 0
}
}]
}
}
});

expect(chart.scales['x-axis-0'].min).toEqual(0);
expect(chart.scales['x-axis-0'].max).toEqual(0);
expect(chart.scales['x-axis-0'].stepSize).toEqual(0);
});
});

0 comments on commit 998840c

Please sign in to comment.