AAE-30882 Remove superagent for fetch (#11856)

* [AAE-30882] - Remove superagent for fetch

* [AAE-30882] - Fixing comments

* [AAE-30882] - fixde failing unit tests

* [AAE-30882] - fixde failing unit tests

* [AAE-30882] - fixd sonarcloud comment
This commit is contained in:
Vito Albano
2026-05-20 14:19:27 +05:30
committed by Anamika Dey
parent 94b9a81570
commit a58fd2e7cc
54 changed files with 2127 additions and 922 deletions
+2 -6
View File
@@ -419,24 +419,20 @@ describe('Auth', () => {
it('should fail if only ECM fail', (done) => {
authResponseBpmMock.get200Response();
authResponseEcmMock.get401Response();
authResponseEcmMock.get401ResponseAdminCredentials();
alfrescoJsApi.login('admin', 'admin').then(NOOP, () => {
done();
});
authResponseEcmMock.cleanAll();
});
it('should fail if only BPM fail', (done) => {
authResponseBpmMock.get401Response();
authResponseBpmMock.get401ResponseAdminCredentials();
authResponseEcmMock.get201Response();
alfrescoJsApi.login('admin', 'admin').then(NOOP, () => {
done();
});
authResponseBpmMock.cleanAll();
});
});