refactor: Make request related handle calls consistent

This commit is contained in:
Joachim Van Herwegen
2021-01-11 11:32:15 +01:00
parent 995a2dc74d
commit f17054c647
12 changed files with 45 additions and 38 deletions

View File

@@ -74,7 +74,7 @@ describe('A DPoPWebIdExtractor', (): void => {
it('calls the target extractor with the correct parameters.', async(): Promise<void> => {
await webIdExtractor.handleSafe(request);
expect(targetExtractor.handle).toHaveBeenCalledTimes(1);
expect(targetExtractor.handle).toHaveBeenCalledWith(request);
expect(targetExtractor.handle).toHaveBeenCalledWith({ request });
});
it('calls the DPoP verifier with the correct parameters.', async(): Promise<void> => {