mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-05-13 16:07:30 +00:00
fix: lint/test
This commit is contained in:
parent
7c0768c2de
commit
310c514e6a
3 changed files with 12 additions and 3 deletions
|
|
@ -65,6 +65,10 @@ jest.mock('~/server/utils', () => ({
|
|||
determineFileType: jest.fn().mockResolvedValue({ mime: 'text/csv' }),
|
||||
}));
|
||||
|
||||
jest.mock('~/server/services/Files/process', () => ({
|
||||
getRetentionExpiry: jest.fn(() => ({})),
|
||||
}));
|
||||
|
||||
const { createFile } = require('~/models');
|
||||
const { processCodeOutput } = require('../process');
|
||||
|
||||
|
|
|
|||
|
|
@ -90,6 +90,11 @@ jest.mock('~/server/services/Files/images/convert', () => ({
|
|||
convertImage: jest.fn(),
|
||||
}));
|
||||
|
||||
// Mock getRetentionExpiry from Files/process
|
||||
jest.mock('~/server/services/Files/process', () => ({
|
||||
getRetentionExpiry: jest.fn(() => ({})),
|
||||
}));
|
||||
|
||||
// Mock determineFileType
|
||||
jest.mock('~/server/utils', () => ({
|
||||
determineFileType: jest.fn(),
|
||||
|
|
|
|||
|
|
@ -61,9 +61,9 @@ const BookmarkMenu: FC = () => {
|
|||
|
||||
const isActiveConvo = Boolean(
|
||||
conversation &&
|
||||
conversationId &&
|
||||
conversationId !== Constants.NEW_CONVO &&
|
||||
conversationId !== 'search',
|
||||
conversationId &&
|
||||
conversationId !== Constants.NEW_CONVO &&
|
||||
conversationId !== 'search',
|
||||
);
|
||||
|
||||
const handleSubmit = useCallback(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue