From b007e2e4ddabe6865a2a85d5b680015d5f9ec247 Mon Sep 17 00:00:00 2001 From: ipula Date: Wed, 8 Jan 2025 17:00:31 +0100 Subject: [PATCH] fix invitation mockup issues --- .../UserInvitationManager.stories.js | 2 +- .../UserInvitationManager/mocks/invitationMock.js | 15 +++------------ 2 files changed, 4 insertions(+), 13 deletions(-) diff --git a/src/managers/UserInvitationManager/UserInvitationManager.stories.js b/src/managers/UserInvitationManager/UserInvitationManager.stories.js index bb45f0b88..14ec1dc0c 100644 --- a/src/managers/UserInvitationManager/UserInvitationManager.stories.js +++ b/src/managers/UserInvitationManager/UserInvitationManager.stories.js @@ -19,7 +19,7 @@ export const Init = { msw: { handlers: [ http.get( - 'https://mock/index.php/publicknowledge/api/v1/invitations', + 'https://mock/index.php/publicknowledge/api/v1/invitations/userRoleAssignment', async ({request}) => { const url = new URL(request.url); const offset = parseInt(url.searchParams.get('offset') || 0); diff --git a/src/managers/UserInvitationManager/mocks/invitationMock.js b/src/managers/UserInvitationManager/mocks/invitationMock.js index 51a189bb3..b2908a897 100644 --- a/src/managers/UserInvitationManager/mocks/invitationMock.js +++ b/src/managers/UserInvitationManager/mocks/invitationMock.js @@ -21,10 +21,7 @@ export default { userGroupsToAdd: [ { userGroupId: 2, - userGroupName: { - en: 'Journal manager', - fr_CA: 'Directeur-trice de la revue', - }, + userGroupName: 'Journal manager', masthead: true, dateStart: '2024-09-10', dateEnd: null, @@ -64,10 +61,7 @@ export default { userGroupsToAdd: [ { userGroupId: 16, - userGroupName: { - en: 'Reviewer', - fr_CA: '\u00c9valuateur-trice', - }, + userGroupName: 'Reviewer', masthead: true, dateStart: '2024-09-10', dateEnd: null, @@ -76,10 +70,7 @@ export default { userGroupsToRemove: [ { userGroupId: 9, - userGroupName: { - en: 'Funding coordinator', - fr_CA: 'Coordonnateur-trice du financement', - }, + userGroupName: 'Funding coordinator', masthead: null, dateStart: null, dateEnd: null,