CommunitySolidServer/test/unit/identity/ownership/NoCheckOwnershipValidator.test.ts
2021-06-01 15:38:55 +02:00

14 lines
553 B
TypeScript

import { NoCheckOwnershipValidator } from '../../../../src/identity/ownership/NoCheckOwnershipValidator';
describe('A NoCheckOwnershipValidator', (): void => {
const validator = new NoCheckOwnershipValidator();
it('can handle everything.', async(): Promise<void> => {
await expect(validator.canHandle({ webId: 'http://test.com/alice/#me' })).resolves.toBeUndefined();
});
it('believes everything.', async(): Promise<void> => {
await expect(validator.handle({ webId: 'http://test.com/alice/#me' })).resolves.toBeUndefined();
});
});