mirror of
https://github.com/chartjs/Chart.js.git
synced 2026-03-09 17:56:51 +01:00
Fix: update chart when attached (#7758)
This commit is contained in:
@@ -637,6 +637,7 @@ describe('Chart', function() {
|
||||
dw: 0, dh: 0,
|
||||
rw: 0, rh: 0,
|
||||
});
|
||||
expect(chart.chartArea).toBeUndefined();
|
||||
|
||||
waitForResize(chart, function() {
|
||||
expect(chart).toBeChartOfSize({
|
||||
@@ -644,6 +645,8 @@ describe('Chart', function() {
|
||||
rw: 455, rh: 355,
|
||||
});
|
||||
|
||||
expect(chart.chartArea).not.toBeUndefined();
|
||||
|
||||
body.removeChild(wrapper);
|
||||
chart.destroy();
|
||||
done();
|
||||
|
||||
Reference in New Issue
Block a user