Skip to content

Commit

Permalink
Convert test files to tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
etimberg committed Jan 1, 2021
1 parent 4086247 commit b7d5f07
Show file tree
Hide file tree
Showing 5 changed files with 97 additions and 97 deletions.
4 changes: 2 additions & 2 deletions test/fixtures/controller.bar/data-key.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ module.exports = {
labels: [0, 1, 3, 4],
datasets: [
{
data2: [5, 20, 10, 11],
dataKey: 'data2',
data2: [5, 20, 10, 11],
dataKey: 'data2',
backgroundColor: '#00ff00',
borderColor: '#ff0000',
borderWidth: 2,
Expand Down
56 changes: 28 additions & 28 deletions test/fixtures/controller.doughnut/data-key.js
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
module.exports = {
config: {
type: 'doughnut',
data: {
labels: ['A', 'B', 'C', 'D', 'E'],
datasets: [{
data2: [1, 5, 10, 50, 100],
dataKey: 'data2',
backgroundColor: [
'rgba(255, 99, 132, 0.8)',
'rgba(54, 162, 235, 0.8)',
'rgba(255, 206, 86, 0.8)',
'rgba(75, 192, 192, 0.8)',
'rgba(153, 102, 255, 0.8)'
],
borderWidth: 20,
borderColor: [
'rgb(255, 99, 132)',
'rgb(54, 162, 235)',
'rgb(255, 206, 86)',
'rgb(75, 192, 192)',
'rgb(153, 102, 255)'
]
}]
},
options: {
responsive: false
}
}
config: {
type: 'doughnut',
data: {
labels: ['A', 'B', 'C', 'D', 'E'],
datasets: [{
data2: [1, 5, 10, 50, 100],
dataKey: 'data2',
backgroundColor: [
'rgba(255, 99, 132, 0.8)',
'rgba(54, 162, 235, 0.8)',
'rgba(255, 206, 86, 0.8)',
'rgba(75, 192, 192, 0.8)',
'rgba(153, 102, 255, 0.8)'
],
borderWidth: 20,
borderColor: [
'rgb(255, 99, 132)',
'rgb(54, 162, 235)',
'rgb(255, 206, 86)',
'rgb(75, 192, 192)',
'rgb(153, 102, 255)'
]
}]
},
options: {
responsive: false
}
}
}
8 changes: 4 additions & 4 deletions test/fixtures/controller.line/data-key.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ module.exports = {
labels: [0, 1, 3, 4],
datasets: [
{
data2: [5, 20, 10, 11],
dataKey: 'data2',
data2: [5, 20, 10, 11],
dataKey: 'data2',
borderColor: '#ff0000',
borderWidth: 2,
fill: false,
borderWidth: 2,
fill: false,
}
]
},
Expand Down
74 changes: 37 additions & 37 deletions test/fixtures/controller.polarArea/data-key.js
Original file line number Diff line number Diff line change
@@ -1,39 +1,39 @@
module.exports = {
config: {
type: 'polarArea',
data: {
labels: ['A', 'B', 'C', 'D', 'E'],
datasets: [{
data2: [11, 16, 21, 1, 10],
dataKey: 'data2',
backgroundColor: [
'rgba(255, 99, 132, 0.8)',
'rgba(54, 162, 235, 0.8)',
'rgba(255, 206, 86, 0.8)',
'rgba(75, 192, 192, 0.8)',
'rgba(153, 102, 255, 0.8)'
],
borderColor: [
'rgb(255, 99, 132)',
'rgb(54, 162, 235)',
'rgb(255, 206, 86)',
'rgb(75, 192, 192)',
'rgb(153, 102, 255)'
]
}]
},
options: {
elements: {
arc: {
angle: [
2.1658, 10.8404, 21.6922, 108.4323, 216.8588
]
}
},
responsive: false,
scale: {
display: false
}
}
}
config: {
type: 'polarArea',
data: {
labels: ['A', 'B', 'C', 'D', 'E'],
datasets: [{
data2: [11, 16, 21, 1, 10],
dataKey: 'data2',
backgroundColor: [
'rgba(255, 99, 132, 0.8)',
'rgba(54, 162, 235, 0.8)',
'rgba(255, 206, 86, 0.8)',
'rgba(75, 192, 192, 0.8)',
'rgba(153, 102, 255, 0.8)'
],
borderColor: [
'rgb(255, 99, 132)',
'rgb(54, 162, 235)',
'rgb(255, 206, 86)',
'rgb(75, 192, 192)',
'rgb(153, 102, 255)'
]
}]
},
options: {
elements: {
arc: {
angle: [
2.1658, 10.8404, 21.6922, 108.4323, 216.8588
]
}
},
responsive: false,
scale: {
display: false
}
}
}
}
52 changes: 26 additions & 26 deletions test/fixtures/controller.radar/data-key.js
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
module.exports = {
config: {
type: 'radar',
data: {
labels: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9],
datasets: [{
borderColor: 'red',
data2: [3, 3, 3, 3, 3, 3, 3, 3, 3, 3],
dataKey: 'data2',
fill: false,
}]
},
options: {
responsive: false,
scale: {
display: false,
min: 0,
max: 3
},
}
},
options: {
canvas: {
height: 512,
width: 512
}
}
config: {
type: 'radar',
data: {
labels: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9],
datasets: [{
borderColor: 'red',
data2: [3, 3, 3, 3, 3, 3, 3, 3, 3, 3],
dataKey: 'data2',
fill: false,
}]
},
options: {
responsive: false,
scale: {
display: false,
min: 0,
max: 3
},
}
},
options: {
canvas: {
height: 512,
width: 512
}
}
}

0 comments on commit b7d5f07

Please sign in to comment.