mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
feat: add response description interface
This commit is contained in:
@@ -44,7 +44,7 @@ describe('An AuthenticatedLdpHandler', (): void => {
|
||||
|
||||
await expect(handler.handle({ request: 'request' as any, response: 'response' as any })).resolves.toEqual('response');
|
||||
expect(responseFn).toHaveBeenCalledTimes(1);
|
||||
expect(responseFn).toHaveBeenLastCalledWith({ response: 'response', operation: 'parser' as any });
|
||||
expect(responseFn).toHaveBeenLastCalledWith({ response: 'response', description: 'operation' as any });
|
||||
});
|
||||
|
||||
it('sends an error to the output if a handler does not support the input.', async(): Promise<void> => {
|
||||
|
||||
Reference in New Issue
Block a user