👁️‍🗨️ refactor: use PermissionBits.VIEW in useAgentsMap for requiredPermission

This commit is contained in:
Danny Avila 2025-08-13 00:35:12 -04:00
parent 803ade8601
commit b742c8c7f9
No known key found for this signature in database
GPG key ID: BF31EEB2C5CA0956
7 changed files with 32 additions and 36 deletions

View file

@ -60,6 +60,10 @@ jest.mock('~/hooks/Agents/useAgentsMap', () => ({
__esModule: true,
default: jest.fn(() => ({})),
}));
jest.mock('~/hooks/Agents/useAgentDefaultPermissionLevel', () => ({
__esModule: true,
default: jest.fn(() => ({})),
}));
jest.mock('~/utils', () => ({
getConvoSwitchLogic: jest.fn(() => ({
@ -101,7 +105,6 @@ jest.mock('~/data-provider', () => ({
isLoading: false,
error: null,
})),
useAgentListingDefaultPermissionLevel: jest.fn(() => 'view'),
useListAgentsQuery: jest.fn(() => ({
data: null,
isLoading: false,