feat: Let Authorizers output an Authorization

This commit is contained in:
Joachim Van Herwegen
2021-02-16 15:59:41 +01:00
parent 8ccc68d29c
commit f2f265c586
12 changed files with 212 additions and 28 deletions

View File

@@ -70,7 +70,7 @@ describe('An AuthenticatedLdpHandler', (): void => {
});
it('errors an invalid object was thrown by a handler.', async(): Promise< void> => {
args.authorizer.handle = async(): Promise<void> => {
args.authorizer.handle = async(): Promise<any> => {
throw 'apple';
};
const handler = new AuthenticatedLdpHandler(args);