LibreChat/api/server/services/Files/Code/__tests__
Aron Gates 23185eab73 fix: use mockSanitizeArtifactPath in retention test
The 'getRetentionExpiry is called with the request object' test
referenced an undefined `mockSanitizeFilename` identifier, breaking
both lint (no-undef) and the test suite. Use the existing
`mockSanitizeArtifactPath` mock that the surrounding tests already
use, since `processCodeOutput` calls `sanitizeArtifactPath` (not
`sanitizeFilename`) before invoking `getRetentionExpiry`.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
(cherry picked from commit 52ea2da66d)
2026-05-10 14:06:39 -04:00
..
process-traversal.spec.js fix: use mockSanitizeArtifactPath in retention test 2026-05-10 14:06:39 -04:00