From ec708e30c04e7afd2d6c8599a1355a0b29462a8f Mon Sep 17 00:00:00 2001 From: aidynoJ Date: Wed, 13 Nov 2024 18:00:01 +0500 Subject: [PATCH] fix test --- src/hooks/useUserSelfTenantPermissions.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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({})); }); });