Enable imports for tests (#6997)

This commit is contained in:
Jukka Kurkela 2020-01-21 22:44:14 +02:00 committed by Evert Timberg
parent b05699eec5
commit 14df2c6722
2 changed files with 2 additions and 1 deletions

View File

@ -59,6 +59,7 @@ module.exports = function(karma) {
].concat((args.inputs || 'test/specs/**/*.js').split(';')), ].concat((args.inputs || 'test/specs/**/*.js').split(';')),
preprocessors: { preprocessors: {
'test/specs/**/*.js': ['rollup'],
'test/index.js': ['rollup'], 'test/index.js': ['rollup'],
'src/index.js': ['sources'] 'src/index.js': ['sources']
}, },

View File

@ -1,8 +1,8 @@
'use strict'; 'use strict';
import * as math from '../../src/helpers/helpers.math';
describe('Chart.helpers.math', function() { describe('Chart.helpers.math', function() {
var math = Chart.helpers.math;
var factorize = math._factorize; var factorize = math._factorize;
var decimalPlaces = math._decimalPlaces; var decimalPlaces = math._decimalPlaces;