import { AllowEverythingAuthorizer } from '../../../src/authorization/AllowEverythingAuthorizer'; describe('An AllowEverythingAuthorizer', (): void => { const authorizer = new AllowEverythingAuthorizer(); it('can handle everything.', async(): Promise => { await expect(authorizer.canHandle({} as any)).resolves.toBeUndefined(); }); it('always returns undefined.', async(): Promise => { await expect(authorizer.handle()).resolves.toBeUndefined(); }); });