mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
fix: Do not reuse the same error in StaticThrowHandler
This commit is contained in:
@@ -506,7 +506,11 @@ describe.each(stores)('An LDP handler allowing all requests %s', (name, { storeC
|
||||
});
|
||||
|
||||
it('returns 405 for unsupported methods.', async(): Promise<void> => {
|
||||
const response = await fetch(baseUrl, { method: 'TRACE' });
|
||||
let response = await fetch(baseUrl, { method: 'TRACE' });
|
||||
expect(response.status).toBe(405);
|
||||
|
||||
// Testing two different URLs as there used to be a problem with this
|
||||
response = await fetch(joinUrl(baseUrl, 'foo'), { method: 'TRACE' });
|
||||
expect(response.status).toBe(405);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user