AAE-30882 - Fixed unit test for js-api

This commit is contained in:
VitoAlbano
2025-08-22 12:48:30 +01:00
committed by Vito Albano
parent e400bc1068
commit c17c8232af
43 changed files with 575 additions and 460 deletions

View File

@@ -40,7 +40,7 @@ const adminUser = {
export class CommentMock extends BaseMock {
post201Response(): void {
nock(this.host, { encodedQueryParams: true })
this.createNockWithCors()
.post('/alfresco/api/-default-/public/alfresco/versions/1/nodes/74cd8a96-8a21-47e5-9b3b-a1b3e296787d/comments', {
content: 'This is a comment'
})
@@ -60,7 +60,7 @@ export class CommentMock extends BaseMock {
}
get200Response(): void {
nock(this.host, { encodedQueryParams: true })
this.createNockWithCors()
.get('/alfresco/api/-default-/public/alfresco/versions/1/nodes/74cd8a96-8a21-47e5-9b3b-a1b3e296787d/comments')
.reply(200, {
list: {