Skip to content

Commit

Permalink
fix: adjust unit tests to previous debugging changes (#3429)
Browse files Browse the repository at this point in the history
  • Loading branch information
chriskari authored Oct 22, 2024
1 parent 2a0b8c5 commit 63607ce
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions backend/request-filters.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,26 +128,26 @@ describe('pathInvalidCharacterFilter tests', () => {
req: {
originalUrl: '/valid/../invalid/path',
},
expectedError: 'Path contains invalid characters.',
expectedError: 'Path contains invalid characters',
},
{
description: 'should throw an error when path contains NULL character',
req: { originalUrl: '/valid/path%00' },
expectedError: 'Path contains invalid characters.',
expectedError: 'Path contains invalid characters',
},
{
description: 'should throw an error for an improperly encoded path',
req: {
originalUrl: '/invalid%path',
},
expectedError: 'Path contains invalid encoding.',
expectedError: 'Path contains invalid encoding',
},
{
description: 'should throw an error for double encoded characters',
req: {
originalUrl: '/%252e%252e',
},
expectedError: 'Path contains invalid encoding',
expectedError: 'Decoded path contains illegal % characters',
},
];

Expand Down

0 comments on commit 63607ce

Please sign in to comment.