1 // Tests of the scale service
2 describe('Test the scale service', function() {
4 it('should update scale defaults', function() {
8 var type = 'my_test_type';
9 var Constructor = function() {
10 this.initialized = true;
12 Chart.scaleService.registerScaleType(type, Constructor, defaults);
14 // Should equal defaults but not be an identical object
15 expect(Chart.scaleService.getScaleDefaults(type)).toEqual(jasmine.objectContaining({
19 Chart.scaleService.updateScaleDefaults(type, {
24 expect(Chart.scaleService.getScaleDefaults(type)).toEqual(jasmine.objectContaining({