diff options
author | Stas Vilchik <vilchiks@gmail.com> | 2016-12-29 11:37:28 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-29 11:37:28 +0100 |
commit | c85948205409283fa7dec4ab1db9764acc0d3ce9 (patch) | |
tree | b4fbd692e4ce6cc93ccf417173242398adecf9c1 /server/sonar-web/src/main/js/components/source-viewer/popups/coverage-popup.js | |
parent | 5595c2f862cca1d07312c9219013f836e45a5f90 (diff) | |
download | sonarqube-c85948205409283fa7dec4ab1db9764acc0d3ce9.tar.gz sonarqube-c85948205409283fa7dec4ab1db9764acc0d3ce9.zip |
remove explicit _ and $ dependecies (#1487)
Diffstat (limited to 'server/sonar-web/src/main/js/components/source-viewer/popups/coverage-popup.js')
-rw-r--r-- | server/sonar-web/src/main/js/components/source-viewer/popups/coverage-popup.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/server/sonar-web/src/main/js/components/source-viewer/popups/coverage-popup.js b/server/sonar-web/src/main/js/components/source-viewer/popups/coverage-popup.js index 2f6d67c67ad..6437c1dcbdf 100644 --- a/server/sonar-web/src/main/js/components/source-viewer/popups/coverage-popup.js +++ b/server/sonar-web/src/main/js/components/source-viewer/popups/coverage-popup.js @@ -18,7 +18,7 @@ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ import $ from 'jquery'; -import _ from 'underscore'; +import groupBy from 'lodash/groupBy'; import Popup from '../../common/popup'; import Workspace from '../../workspace/main'; import Template from '../templates/source-viewer-coverage-popup.hbs'; @@ -43,8 +43,9 @@ export default Popup.extend({ serializeData () { const row = this.options.row || {}; - const tests = _.groupBy(this.collection.toJSON(), 'fileId'); - const testFiles = _.map(tests, testSet => { + const tests = groupBy(this.collection.toJSON(), 'fileId'); + const testFiles = Object.keys(tests).map(fileId => { + const testSet = tests[fileId]; const test = testSet[0]; return { file: { |