diff --git a/src/hooks/useUserSelfTenantPermissions.test.js b/src/hooks/useUserSelfTenantPermissions.test.js index 6429b691..c2876a5d 100644 --- a/src/hooks/useUserSelfTenantPermissions.test.js +++ b/src/hooks/useUserSelfTenantPermissions.test.js @@ -60,6 +60,6 @@ describe('useUserSelfTenantPermissions', () => { await waitFor(() => !result.current.isLoading); expect(setHeaderMock).toHaveBeenCalledWith('X-Okapi-Tenant', options.tenantId); - expect(getMock).toHaveBeenCalledWith('users-keycloak/_self?ex', expect.objectContaining({})); + expect(getMock).toHaveBeenCalledWith('users-keycloak/_self?expandPermissions=true', expect.objectContaining({})); }); });