Remove unused config argument and change to fat arrow functions
This commit is contained in:
parent
ad07d651de
commit
46096e8bf8
|
@ -24,7 +24,7 @@ describe('Vislib Color Module Test Suite', function () {
|
|||
var color;
|
||||
|
||||
beforeEach(ngMock.module('kibana'));
|
||||
beforeEach(ngMock.inject(function (Private, config) {
|
||||
beforeEach(ngMock.inject((Private, config) => {
|
||||
previousConfig = config.get('visualization:colorMapping');
|
||||
config.set('visualization:colorMapping', {});
|
||||
seedColors = Private(require('ui/vislib/components/color/seed_colors'));
|
||||
|
@ -33,7 +33,7 @@ describe('Vislib Color Module Test Suite', function () {
|
|||
color = getColors(arr);
|
||||
}));
|
||||
|
||||
afterEach(ngMock.inject(function (config) {
|
||||
afterEach(ngMock.inject((config) => {
|
||||
config.set('visualization:colorMapping', previousConfig);
|
||||
}));
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
define(function (require) {
|
||||
return function ColorUtilService(Private, config) {
|
||||
return function ColorUtilService(Private) {
|
||||
var _ = require('lodash');
|
||||
var mappedColors = Private(require('ui/vislib/components/color/mapped_colors'));
|
||||
|
||||
|
|
Loading…
Reference in a new issue