webpack/scenes/Content/__tests__/contentTable.test.js in katello-4.5.1 vs webpack/scenes/Content/__tests__/contentTable.test.js in katello-4.6.0.rc1

- old
+ new

@@ -1,8 +1,8 @@ import React from 'react'; import { renderWithRedux, patientlyWaitFor } from 'react-testing-lib-wrapper'; -import nock, { nockInstance, assertNockRequest, mockAutocomplete, mockSetting } from '../../../test-utils/nockWrapper'; +import { nockInstance, assertNockRequest, mockAutocomplete, mockSetting } 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'; @@ -19,10 +19,9 @@ searchDelayScope = mockSetting(nockInstance, 'autosearch_delay', 0); autoSearchScope = mockSetting(nockInstance, 'autosearch_while_typing'); }); afterEach(() => { - nock.cleanAll(); assertNockRequest(autoSearchScope); assertNockRequest(searchDelayScope); }); test('Can call API for Python Packages and show table on page load', async (done) => {