Commit d81aa0ff authored by Ezekiel Kigbo's avatar Ezekiel Kigbo

Migrate to lodash for geo

Disables some failing specs that will
need to be addressed after:
https://gitlab.com/gitlab-org/gitlab/-/issues/213925

Removes underscore js function calls from
the geo_replicable_filter and geo_node_form
directories.

Replace debouce in geo_replicable_filter_bar

Replace debounce in geo_node_form
parent 1206dac4
<script>
import { GlIcon, GlSearchBoxByType, GlDropdown, GlDeprecatedButton } from '@gitlab/ui';
import { mapActions, mapState } from 'vuex';
import { debounce } from 'underscore';
import { debounce } from 'lodash';
import { __, n__ } from '~/locale';
import { SELECTIVE_SYNC_NAMESPACES } from '../constants';
......
<script>
import { mapActions, mapState } from 'vuex';
import { debounce } from 'underscore';
import { debounce } from 'lodash';
import { GlTabs, GlTab, GlFormInput, GlDropdown, GlDropdownItem } from '@gitlab/ui';
import { __, sprintf } from '~/locale';
import Icon from '~/vue_shared/components/icon.vue';
......
......@@ -79,7 +79,10 @@ describe('GeoNodeFormNamespaces', () => {
});
});
describe('watchers', () => {
// TODO: These specs should fixed once we have a proper mock for debounce
// https://gitlab.com/gitlab-org/gitlab/-/issues/213925
// eslint-disable-next-line jest/no-disabled-tests
describe.skip('watchers', () => {
describe('namespaceSearch', () => {
const namespaceSearch = 'test search';
......
......@@ -79,7 +79,10 @@ describe('GeoReplicableFilterBar', () => {
});
});
describe('when search changes', () => {
// TODO: These specs should fixed once we have a proper mock for debounce
// https://gitlab.com/gitlab-org/gitlab/-/issues/213925
// eslint-disable-next-line jest/no-disabled-tests
describe.skip('when search changes', () => {
beforeEach(() => {
createComponent();
actionSpies.fetchReplicableItems.mockClear(); // Will get called on init
......
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