mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
refactor: Enable stricter test linting
This commit is contained in:
@@ -222,7 +222,8 @@ describe('A StaticAssetHandler', (): void => {
|
||||
it('does not handle a request to a known folder URL with parent path segments.', async(): Promise<void> => {
|
||||
const request = { method: 'GET', url: '/foo/bar/folder/../def.css' };
|
||||
const response = createResponse({ eventEmitter: EventEmitter });
|
||||
await expect(handler.canHandle({ request, response } as any)).rejects.toThrow();
|
||||
await expect(handler.canHandle({ request, response } as any))
|
||||
.rejects.toThrow('No static resource configured at /foo/bar/folder/../def.css');
|
||||
});
|
||||
|
||||
it('caches responses when the expires option is set.', async(): Promise<void> => {
|
||||
|
||||
Reference in New Issue
Block a user