Skip to content

Commit 798c3c1

Browse files
Update src/__tests__/routes.test.js
Co-authored-by: Copilot <[email protected]>
1 parent 9df1b6e commit 798c3c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/__tests__/routes.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ describe('API Routes', () => {
450450
// Test with '..' embedded in the path that won't be normalized away
451451
const res = await request(app)
452452
.get('/v1/static/reports/..hidden/passwd')
453-
453+
.expect(400);
454454
expect(res.body).toHaveProperty('error', 'Invalid file path');
455455
});
456456

0 commit comments

Comments
 (0)