mirror of
https://github.com/chartjs/Chart.js.git
synced 2025-12-08 20:36:08 +00:00
Fix missing Chart.Chart (deprecated) alias (#6112)
This commit is contained in:
parent
d3b7559b9b
commit
87a74f99a1
@ -51,6 +51,15 @@ if (typeof window !== 'undefined') {
|
||||
|
||||
// DEPRECATIONS
|
||||
|
||||
/**
|
||||
* Provided for backward compatibility, not available anymore
|
||||
* @namespace Chart.Chart
|
||||
* @deprecated since version 2.8.0
|
||||
* @todo remove at version 3
|
||||
* @private
|
||||
*/
|
||||
Chart.Chart = Chart;
|
||||
|
||||
/**
|
||||
* Provided for backward compatibility, not available anymore
|
||||
* @namespace Chart.Legend
|
||||
|
||||
@ -24,6 +24,12 @@ describe('Deprecations', function() {
|
||||
});
|
||||
});
|
||||
|
||||
describe('Chart.Chart', function() {
|
||||
it('should be defined as an alias to Chart', function() {
|
||||
expect(Chart.Chart).toBe(Chart);
|
||||
});
|
||||
});
|
||||
|
||||
describe('Chart.helpers.aliasPixel', function() {
|
||||
it('should be defined as a function', function() {
|
||||
expect(typeof Chart.helpers.aliasPixel).toBe('function');
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user