chore: Upgrade nock and delete nock related boilerplate code (no-changelog) (#12869)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2025-01-27 18:17:51 +01:00
committed by GitHub
parent 0bb65f27ab
commit f64c6bf9ac
154 changed files with 75 additions and 1483 deletions

View File

@@ -25,7 +25,6 @@ describe('Test AWS Comprehend Node', () => {
await initBinaryDataService();
nock.disableNetConnect();
const baseUrl = 'https://comprehend.eu-central-1.amazonaws.com';
mock = nock(baseUrl);
@@ -34,9 +33,6 @@ describe('Test AWS Comprehend Node', () => {
beforeEach(async () => {
mock.post('/').reply(200, response);
});
afterAll(() => {
nock.restore();
});
testWorkflows(workflows);
});

View File

@@ -291,7 +291,6 @@ describe('Test AWS Rekogntion Node', () => {
let mock: nock.Scope;
beforeAll(async () => {
nock.disableNetConnect();
mock = nock(baseUrl);
});
@@ -299,9 +298,6 @@ describe('Test AWS Rekogntion Node', () => {
mock.post('/').reply(200, responseLabels);
});
afterAll(() => {
nock.restore();
});
testWorkflows(workflows);
});
});

View File

@@ -14,7 +14,6 @@ describe('Test S3 V1 Node', () => {
await initBinaryDataService();
nock.disableNetConnect();
mock = nock('https://bucket.s3.eu-central-1.amazonaws.com');
});
@@ -40,10 +39,6 @@ describe('Test S3 V1 Node', () => {
.reply(200, { success: true });
});
afterAll(() => {
nock.restore();
});
testWorkflows(workflows);
});
});

View File

@@ -14,7 +14,6 @@ describe('Test S3 V2 Node', () => {
await initBinaryDataService();
nock.disableNetConnect();
mock = nock('https://s3.eu-central-1.amazonaws.com/buc.ket');
});
@@ -40,10 +39,6 @@ describe('Test S3 V2 Node', () => {
.reply(200, { success: true });
});
afterAll(() => {
nock.restore();
});
testWorkflows(workflows);
});
});