mirror of
https://github.com/chartjs/Chart.js.git
synced 2024-10-06 20:29:12 +02:00
2dbf1cd1af
JSON doesn't support functions which are needed to create scriptable options, so implement a very basic method to load a JavaScript file exporting the config in `module.exports`. Also rename test sources (remove the `jasmine.` prefix), cleanup `karma.conf.js` and add an example .js fixture config (bubble radius option).
23 lines
416 B
JavaScript
23 lines
416 B
JavaScript
describe('Core.scale', function() {
|
|
describe('auto', jasmine.fixture.specs('core.scale'));
|
|
|
|
it('should provide default scale label options', function() {
|
|
expect(Chart.defaults.scale.scaleLabel).toEqual({
|
|
// display property
|
|
display: false,
|
|
|
|
// actual label
|
|
labelString: '',
|
|
|
|
// actual label
|
|
lineHeight: 1.2,
|
|
|
|
// top/bottom padding
|
|
padding: {
|
|
top: 4,
|
|
bottom: 4
|
|
}
|
|
});
|
|
});
|
|
});
|