Skip to content

Commit

Permalink
Removed JQuery from the unit tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
jszuminski authored and TorsteinHonsi committed Mar 28, 2023
1 parent f583d5a commit dc32875
Showing 1 changed file with 19 additions and 25 deletions.
44 changes: 19 additions & 25 deletions samples/unit-tests/series-column/stacking/demo.js
Original file line number Diff line number Diff line change
@@ -1,27 +1,25 @@
QUnit.test(
'Negative stack with just one point should be also calculate (#4979)',
function (assert) {
var chart = $('#container')
.highcharts({
chart: {
type: 'column'
},
plotOptions: {
column: {
borderWidth: 0,
stacking: 'percent'
}
const chart = Highcharts.chart('container', {
chart: {
type: 'column'
},
plotOptions: {
column: {
borderWidth: 0,
stacking: 'percent'
}
},
series: [
{
data: [-10]
},
series: [
{
data: [-10]
},
{
data: [10]
}
]
})
.highcharts(),
{
data: [10]
}
]
}),
oldHeight = chart.series[0].points[0].graphic.getBBox(true).height;

chart.series[0].addPoint(-10, false);
Expand All @@ -36,9 +34,7 @@ QUnit.test(
);

QUnit.test('Column outside plot area(#4264)', function (assert) {
var chart;

$('#container').highcharts({
const chart = Highcharts.chart('container', {
chart: {
type: 'column',
zoomType: 'xy'
Expand Down Expand Up @@ -112,8 +108,6 @@ QUnit.test('Column outside plot area(#4264)', function (assert) {
]
});

chart = $('#container').highcharts();

assert.equal(
chart.series[0].points[0].graphic.attr('y') +
chart.series[0].points[0].graphic.attr('height') <
Expand Down

0 comments on commit dc32875

Please sign in to comment.