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
@@ -17,7 +17,6 @@
'use strict';
import nock from 'nock';
import { BaseMock } from '../base.mock';
const adminUser = {
@@ -40,7 +39,7 @@ const adminUser = {
export class CommentMock extends BaseMock {
post201Response(): void {
nock(this.host, { encodedQueryParams: true })
this.mock()
.post('/alfresco/api/-default-/public/alfresco/versions/1/nodes/74cd8a96-8a21-47e5-9b3b-a1b3e296787d/comments', {
content: 'This is a comment'
})
@@ -60,7 +59,7 @@ export class CommentMock extends BaseMock {
}
get200Response(): void {
nock(this.host, { encodedQueryParams: true })
this.mock()
.get('/alfresco/api/-default-/public/alfresco/versions/1/nodes/74cd8a96-8a21-47e5-9b3b-a1b3e296787d/comments')
.reply(200, {
list: {