import { PassthroughConverter } from '../../../../src/storage/conversion/PassthroughConverter'; describe('A PassthroughConverter', (): void => { const representation = {}; const args = { representation } as any; const converter = new PassthroughConverter(); it('supports any conversion.', async(): Promise => { await expect(converter.canHandle(args)).resolves.toBeUndefined(); }); it('returns the original representation on handle.', async(): Promise => { await expect(converter.handle(args)).resolves.toBe(representation); }); it('returns the original representation on handleSafe.', async(): Promise => { await expect(converter.handleSafe(args)).resolves.toBe(representation); }); });