// Tests of the scale servicedescribe('Test the scale service',function(){it('should update scale defaults',function(){vardefaults={testProp:true};vartype='my_test_type';varConstructor=function(){this.initialized=true;};Chart.scaleService.registerScaleType(type,Constructor,defaults);// Should equal defaults but not be an identical objectexpect(Chart.scaleService.getScaleDefaults(type)).toEqual(jasmine.objectContaining({testProp:true}));Chart.scaleService.updateScaleDefaults(type,{testProp:'red',newProp:42});expect(Chart.scaleService.getScaleDefaults(type)).toEqual(jasmine.objectContaining({testProp:'red',newProp:42}));});});