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