mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
chore: Upgrade nock and delete nock related boilerplate code (no-changelog) (#12869)
This commit is contained in:
committed by
GitHub
parent
0bb65f27ab
commit
f64c6bf9ac
@@ -1,5 +1,4 @@
|
||||
import type { IExecuteFunctions } from 'n8n-workflow';
|
||||
import nock from 'nock';
|
||||
|
||||
import { theHiveApiQuery } from '../transport/queryHelper';
|
||||
import * as transport from '../transport/requestApi';
|
||||
@@ -17,15 +16,6 @@ jest.mock('../transport/requestApi', () => {
|
||||
const fakeExecuteFunction = {} as unknown as IExecuteFunctions;
|
||||
|
||||
describe('Test TheHiveProject, theHiveApiQuery', () => {
|
||||
beforeAll(() => {
|
||||
nock.disableNetConnect();
|
||||
});
|
||||
|
||||
afterAll(() => {
|
||||
nock.restore();
|
||||
jest.unmock('../transport/requestApi');
|
||||
});
|
||||
|
||||
it('should make list query request', async () => {
|
||||
const scope = {
|
||||
query: 'listOrganisationPage',
|
||||
|
||||
Reference in New Issue
Block a user