Fix missing Chart.Chart (deprecated) alias (#6112)

This commit is contained in:
Simon Brunel 2019-03-06 09:12:29 +01:00 committed by GitHub
parent d3b7559b9b
commit 87a74f99a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 0 deletions

View File

@ -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

View File

@ -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');