Commit 2b594eb7 authored by Kushal Pandya's avatar Kushal Pandya

Merge branch...

Merge branch '210259-replace-underscore-with-lodash-for-ee-app-assets-javascripts-dependencies' into 'master'

Replace underscore with lodash for ./ee/app/assets/javascripts/dependencies

Closes #210259

See merge request gitlab-org/gitlab!27312
parents e285fc7f 251ac389
<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