Skip to content

Commit

Permalink
fixing test lint style issue
Browse files Browse the repository at this point in the history
  • Loading branch information
huqingkun committed Aug 2, 2024
1 parent 170f4ce commit e5ec33e
Showing 1 changed file with 31 additions and 31 deletions.
62 changes: 31 additions & 31 deletions test/specs/controller.bar.tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -1679,82 +1679,82 @@ describe('Chart.controllers.bar', function() {
it('should correctly count the number of stacks when skipNull and different order datasets', function() {

const chart = window.acquireChart({
type: "bar",
type: 'bar',
data: {
datasets: [
{
id: "1",
label: "USA",
id: '1',
label: 'USA',
data: [
{
xScale: "First",
Country: "USA",
xScale: 'First',
Country: 'USA',
yScale: 524
},
{
xScale: "Second",
Country: "USA",
xScale: 'Second',
Country: 'USA',
yScale: 325
}
],

yAxisID: "yScale",
xAxisID: "xScale",
yAxisID: 'yScale',
xAxisID: 'xScale',

parsing: {
yAxisKey: "yScale",
xAxisKey: "xScale"
yAxisKey: 'yScale',
xAxisKey: 'xScale'
}
},
{
id: "2",
label: "BRA",
id: '2',
label: 'BRA',
data: [
{
xScale: "Second",
Country: "BRA",
xScale: 'Second',
Country: 'BRA',
yScale: 183
},
{
xScale: "First",
Country: "BRA",
xScale: 'First',
Country: 'BRA',
yScale: 177
}
],

yAxisID: "yScale",
xAxisID: "xScale",
yAxisID: 'yScale',
xAxisID: 'xScale',

parsing: {
yAxisKey: "yScale",
xAxisKey: "xScale"
yAxisKey: 'yScale',
xAxisKey: 'xScale'
}
},
{
id: "3",
label: "DEU",
id: '3',
label: 'DEU',
data: [
{
xScale: "First",
Country: "DEU",
xScale: 'First',
Country: 'DEU',
yScale: 162
}
],

yAxisID: "yScale",
xAxisID: "xScale",
yAxisID: 'yScale',
xAxisID: 'xScale',

parsing: {
yAxisKey: "yScale",
xAxisKey: "xScale"
yAxisKey: 'yScale',
xAxisKey: 'xScale'
}
}
]
},
options: {
skipNull: true
}
})
});

var meta = chart.getDatasetMeta(0);
expect(meta.controller._getStackCount(0)).toBe(3);
Expand Down

0 comments on commit e5ec33e

Please sign in to comment.