mirror of
https://github.com/chartjs/Chart.js.git
synced 2026-03-06 00:14:03 +01:00
Fix: config.platform was ignored (#9442)
This commit is contained in:
@@ -1935,4 +1935,14 @@ describe('Chart', function() {
|
||||
expect(active[0].element).toBe(meta.data[0]);
|
||||
});
|
||||
});
|
||||
|
||||
describe('platform', function() {
|
||||
it('should use the platform constructor provided in config', function() {
|
||||
const chart = acquireChart({
|
||||
platform: Chart.platforms.BasicPlatform,
|
||||
type: 'line',
|
||||
});
|
||||
expect(chart.platform).toBeInstanceOf(Chart.platforms.BasicPlatform);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user