webpack/scenes/Content/__tests__/contentTable.test.js in katello-4.7.6 vs webpack/scenes/Content/__tests__/contentTable.test.js in katello-4.8.0.rc1
- old
+ new
@@ -1,30 +1,17 @@
import React from 'react';
import { renderWithRedux, patientlyWaitFor } from 'react-testing-lib-wrapper';
-import { nockInstance, assertNockRequest, mockAutocomplete, mockSetting } from '../../../test-utils/nockWrapper';
+import { nockInstance, assertNockRequest, mockAutocomplete } from '../../../test-utils/nockWrapper';
import api from '../../../services/api';
import ContentPage from '../ContentPage';
import ansibleCollectionsResponse from './ansibleCollections.fixtures';
import contentTypesResponse from './contentTypes.fixtures.json';
import pythonPackagesResponse from './pythonPackages.fixtures.json';
import ContentTable from '../Table/ContentTable';
const contentTypesPath = api.getApiUrl('/repositories/content_types');
const pythonPackagesPath = api.getApiUrl('/python_packages');
const ansibleCollectionsPath = api.getApiUrl('/ansible_collections');
-
-let searchDelayScope;
-let autoSearchScope;
-
-beforeEach(() => {
- searchDelayScope = mockSetting(nockInstance, 'autosearch_delay', 0);
- autoSearchScope = mockSetting(nockInstance, 'autosearch_while_typing');
-});
-
-afterEach(() => {
- assertNockRequest(autoSearchScope);
- assertNockRequest(searchDelayScope);
-});
test('Can call API for Python Packages and show table on page load', async (done) => {
const autocompleteUrl = '/python_packages/auto_complete_search';
const autocompleteScope = mockAutocomplete(nockInstance, autocompleteUrl);