CommunitySolidServer/test/unit/authorization/AllowEverythingAuthorizer.test.ts
2020-09-02 15:42:13 +02:00

14 lines
478 B
TypeScript

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