From 46096e8bf86b81ad79b579761892847ead75c06d Mon Sep 17 00:00:00 2001 From: Lukas Olson Date: Mon, 14 Sep 2015 21:29:51 -0700 Subject: [PATCH] Remove unused config argument and change to fat arrow functions --- src/ui/public/vislib/__tests__/components/color.js | 4 ++-- src/ui/public/vislib/components/color/color.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ui/public/vislib/__tests__/components/color.js b/src/ui/public/vislib/__tests__/components/color.js index a882d4346b233..7e38078a66092 100644 --- a/src/ui/public/vislib/__tests__/components/color.js +++ b/src/ui/public/vislib/__tests__/components/color.js @@ -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); })); diff --git a/src/ui/public/vislib/components/color/color.js b/src/ui/public/vislib/components/color/color.js index 522eaf7020840..29fe7fac327a6 100644 --- a/src/ui/public/vislib/components/color/color.js +++ b/src/ui/public/vislib/components/color/color.js @@ -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'));