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-07 09:12:07 +01:00
committed by GitHub
parent 9cdacf3ebf
commit 57bf066164
54 changed files with 2127 additions and 922 deletions
@@ -15,12 +15,11 @@
* limitations under the License.
*/
import nock from 'nock';
import { BaseMock } from '../base.mock';
import { BaseMock, mockHost } from '../base.mock';
export class ModelJsonBpmMock extends BaseMock {
get200EditorDisplayJsonClient(): void {
nock(this.host, { encodedQueryParams: true })
this.mock()
.get('/activiti-app/app/rest/models/1/model-json')
.reply(200, {
elements: [
@@ -87,7 +86,7 @@ export class ModelJsonBpmMock extends BaseMock {
}
get200HistoricEditorDisplayJsonClient(): void {
nock('https://127.0.0.1:9999', { encodedQueryParams: true })
mockHost('https://127.0.0.1:9999')
.get('/activiti-app/app/rest/models/1/history/1/model-json')
.reply(200, {
elements: [