Skip to content

Commit a9a5503

Browse files
committed
test(files): assert success explicitly in external-URL traversal test
1 parent e34ad51 commit a9a5503

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/sim/app/api/files/parse/route.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -821,7 +821,7 @@ describe('Files Parse API - Path Traversal Security', () => {
821821
const response = await POST(request)
822822
const result = await response.json()
823823

824-
expect(result.error ?? '').not.toContain('path traversal detected')
824+
expect(result.success).toBe(true)
825825
// The URL reaching the pinned fetch proves it passed validation and routed
826826
// to external-URL handling rather than being rejected as a local path.
827827
expect(inputValidationMockFns.mockSecureFetchWithPinnedIP).toHaveBeenCalledWith(

0 commit comments

Comments
 (0)