Skip to content

Commit dac95fd

Browse files
committed
Add deprecation tests (and fix lint error)
1 parent 4b0dc2f commit dac95fd

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

src/core/core.helpers.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
var color = require('chartjs-color');
66
var defaults = require('./core.defaults');
77
var helpers = require('../helpers/index');
8-
var scaleService = require('../core/core.scaleService');
98

109
module.exports = function() {
1110

test/specs/global.deprecations.tests.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,18 @@ describe('Deprecations', function() {
4242
expect(Chart.types).toEqual({});
4343
});
4444
});
45+
46+
describe('Chart.helpers.configMerge', function() {
47+
it('should be defined as a function', function() {
48+
expect(typeof Chart.helpers.configMerge).toBe('function');
49+
});
50+
});
51+
52+
describe('Chart.helpers.scaleMerge', function() {
53+
it('should be defined as a function', function() {
54+
expect(typeof Chart.helpers.scaleMerge).toBe('function');
55+
});
56+
});
4557
});
4658

4759
describe('Version 2.7.3', function() {

0 commit comments

Comments
 (0)