Skip to content

Commit

Permalink
Added Infinity to NaN bounds scale tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bcongdon committed Aug 11, 2016
1 parent 621d534 commit 0ac6520
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions test/scale.linear.tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,9 +167,9 @@ describe('Linear Scale', function() {
data: {
datasets: [{
yAxisID: 'yScale0',
data: [null, 90, NaN, undefined, 45, 30]
data: [null, 90, NaN, undefined, 45, 30, Infinity]
}],
labels: ['a', 'b', 'c', 'd', 'e', 'f']
labels: ['a', 'b', 'c', 'd', 'e', 'f', 'g']
},
options: {
scales: {
Expand Down
6 changes: 3 additions & 3 deletions test/scale.logarithmic.tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,11 +170,11 @@ describe('Logarithmic Scale tests', function() {
type: 'bar',
data: {
datasets: [{
data: [undefined, 10, null, 5, 5000, NaN, 78, 450]
data: [undefined, 10, null, 5, 5000, NaN, 78, 450, Infinity]
}, {
data: [undefined, 28, null, 1000, 500, NaN, 50, 42]
data: [undefined, 28, null, 1000, 500, NaN, 50, 42, Infinity]
}],
labels: ['a', 'b', 'c', 'd', 'e', 'f' ,'g']
labels: ['a', 'b', 'c', 'd', 'e', 'f' ,'g', 'h']
},
options: {
scales: {
Expand Down
4 changes: 2 additions & 2 deletions test/scale.radialLinear.tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,9 @@ describe('Test the radial linear scale', function() {
type: 'radar',
data: {
datasets: [{
data: [50, 60, NaN, 70, null, undefined]
data: [50, 60, NaN, 70, null, undefined, Infinity]
}],
labels: ['lablel1', 'label2', 'label3', 'label4', 'label5', 'label6']
labels: ['lablel1', 'label2', 'label3', 'label4', 'label5', 'label6', 'label7']
},
options: {
scales: {
Expand Down

0 comments on commit 0ac6520

Please sign in to comment.