mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-20 02:10:15 +01:00
👁️🗨️ refactor: use PermissionBits.VIEW in useAgentsMap for requiredPermission
This commit is contained in:
parent
803ade8601
commit
b742c8c7f9
7 changed files with 32 additions and 36 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue