fix: lint/test

This commit is contained in:
Aron Gates 2026-04-08 17:37:15 +01:00
parent 7c0768c2de
commit 310c514e6a
No known key found for this signature in database
GPG key ID: 4F5BDD01E0CFE2A0
3 changed files with 12 additions and 3 deletions

View file

@ -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');

View file

@ -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(),

View file

@ -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(