Revert "AAE-30882 Replace superagent (#11134)" (#11210)

* Revert "AAE-30882 Replace superagent (#11134)"

This reverts commit a347b20f20.

* AAE-0000 - Fixed lock for cli and adf
This commit is contained in:
Vito Albano
2025-09-19 12:44:06 +01:00
committed by GitHub
parent ef29bafc75
commit 91d6b80965
57 changed files with 3074 additions and 1051 deletions
+4 -5
View File
@@ -17,9 +17,8 @@
import assert from 'assert';
import { ProcessAuth } from '../src';
import { SuperagentHttpClient } from '../src/superagentHttpClient';
import { BpmAuthMock } from './mockObjects';
import { AxiosHttpClient } from '../src/axiosHttpClient';
describe('Bpm Auth test', () => {
const hostBpm = 'https://127.0.0.1:9999';
@@ -257,16 +256,16 @@ describe('Bpm Auth test', () => {
let setCsrfTokenCalled = false;
beforeEach(() => {
originalMethod = AxiosHttpClient.prototype.setCsrfToken;
originalMethod = SuperagentHttpClient.prototype.setCsrfToken;
setCsrfTokenCalled = false;
AxiosHttpClient.prototype.setCsrfToken = () => {
SuperagentHttpClient.prototype.setCsrfToken = () => {
setCsrfTokenCalled = true;
};
});
afterEach(() => {
AxiosHttpClient.prototype.setCsrfToken = originalMethod;
SuperagentHttpClient.prototype.setCsrfToken = originalMethod;
setCsrfTokenCalled = false;
});