mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
14 lines
478 B
TypeScript
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();
|
|
});
|
|
});
|