webpack/scenes/ContentViews/Delete/__tests__/contentViewDelete.test.js in katello-4.5.1 vs webpack/scenes/ContentViews/Delete/__tests__/contentViewDelete.test.js in katello-4.6.0.rc1
- old
+ new
@@ -1,10 +1,10 @@
/* eslint-disable no-useless-escape */
import React from 'react';
import { renderWithRedux, patientlyWaitFor, fireEvent, act } from 'react-testing-lib-wrapper';
import api, { foremanApi } from '../../../../services/api';
-import nock, {
+import {
nockInstance, assertNockRequest, mockAutocomplete, mockSetting, mockForemanAutocomplete,
} from '../../../../test-utils/nockWrapper';
import CONTENT_VIEWS_KEY from '../../ContentViewsConstants';
import ContentViewsPage from '../../ContentViewsPage.js';
import cvIndexData from './CvData.fixtures.json';
@@ -51,10 +51,9 @@
searchDelayScope = mockSetting(nockInstance, 'autosearch_delay', 0);
autoSearchScope = mockSetting(nockInstance, 'autosearch_while_typing');
});
afterEach(() => {
- nock.cleanAll();
assertNockRequest(searchDelayScope);
assertNockRequest(autoSearchScope);
});
test('Can call API for CVs and show Delete Wizard for the row', async (done) => {