Skip to content

Commit

Permalink
fix invitation mockup issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ipula committed Jan 21, 2025
1 parent bddd0fe commit b007e2e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
15 changes: 3 additions & 12 deletions src/managers/UserInvitationManager/mocks/invitationMock.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand All @@ -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,
Expand Down

0 comments on commit b007e2e

Please sign in to comment.