Commit 251ac389 authored by Dave Pisek's avatar Dave Pisek

Replace underscore with lodash in dependencies

This commit replaces all instances of underscore functions within
/ee/assets/javascripts/dependencies and it's corresponding spec folder.
parent a22ea023
<script> <script>
import { uniqueId } from 'underscore'; import { uniqueId } from 'lodash';
import { GlButton, GlLink, GlModal, GlModalDirective, GlIntersperse } from '@gitlab/ui'; import { GlButton, GlLink, GlModal, GlModalDirective, GlIntersperse } from '@gitlab/ui';
import { sprintf, s__ } from '~/locale'; import { sprintf, s__ } from '~/locale';
......
import _ from 'underscore'; import { sortBy } from 'lodash';
import axios from 'axios'; import axios from 'axios';
import MockAdapter from 'axios-mock-adapter'; import MockAdapter from 'axios-mock-adapter';
import testAction from 'helpers/vuex_action_helper'; import testAction from 'helpers/vuex_action_helper';
...@@ -132,8 +132,9 @@ describe('Dependencies actions', () => { ...@@ -132,8 +132,9 @@ describe('Dependencies actions', () => {
describe('fetchDependencies', () => { describe('fetchDependencies', () => {
const dependenciesPackagerDescending = { const dependenciesPackagerDescending = {
...mockDependenciesResponse, ...mockDependenciesResponse,
dependencies: _.sortBy(mockDependenciesResponse.dependencies, 'packager').reverse(), dependencies: sortBy(mockDependenciesResponse.dependencies, 'packager').reverse(),
}; };
let state; let state;
let mock; let mock;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment