CommunitySolidServer/test/unit/identity/interaction/StaticInteractionHandler.test.ts
Joachim Van Herwegen a47f5236ef 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.
2023-10-06 11:04:40 +02:00

11 lines
392 B
TypeScript

import { StaticInteractionHandler } from '../../../../src/identity/interaction/StaticInteractionHandler';
describe('A FixedInteractionHandler', (): void => {
const json = { data: 'data' };
const handler = new StaticInteractionHandler(json);
it('returns the given JSON as response.', async(): Promise<void> => {
await expect(handler.handle()).resolves.toEqual({ json });
});
});