mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
feat: Full rework of account management
Complete rewrite of the account management and related systems. Makes the architecture more modular, allowing for easier extensions and configurations.
This commit is contained in:
14
test/unit/identity/interaction/webid/WebIdLinkRoute.test.ts
Normal file
14
test/unit/identity/interaction/webid/WebIdLinkRoute.test.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import { BaseAccountIdRoute } from '../../../../../src/identity/interaction/account/AccountIdRoute';
|
||||
import {
|
||||
AbsolutePathInteractionRoute,
|
||||
} from '../../../../../src/identity/interaction/routing/AbsolutePathInteractionRoute';
|
||||
import { BaseWebIdLinkRoute } from '../../../../../src/identity/interaction/webid/WebIdLinkRoute';
|
||||
|
||||
describe('A WebIdLinkRoute', (): void => {
|
||||
it('uses the WebID link key.', async(): Promise<void> => {
|
||||
const webIdLinkRoute = new BaseWebIdLinkRoute(new BaseAccountIdRoute(
|
||||
new AbsolutePathInteractionRoute('http://example.com/'),
|
||||
));
|
||||
expect(webIdLinkRoute.matchPath('http://example.com/123/456/')).toEqual({ accountId: '123', webIdLink: '456' });
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user