Skip to content
Snippets Groups Projects

feat(ssi): schema functionality

Merged Berend Sliedrecht requested to merge tsabolov/ocm-engine:schemas into main
20 files
+ 304
92
Compare changes
  • Side-by-side
  • Inline
Files
20
import { BaseEvent, EventDidcommConnectionsGetAll } from './events.js';
import { BaseEvent } from '../baseEvents.js';
describe('check logger', () => {
describe('Base Events', () => {
it('should return module', () => {
jest.requireActual('./events');
jest.requireActual('../baseEvents');
});
it('should create a new base event', () => {
@@ -13,17 +13,4 @@ describe('check logger', () => {
expect(baseEvent.timestamp).toBeInstanceOf(Date);
expect(baseEvent.data).toMatchObject({ some: 'data' });
});
it('should create a new connections get all event', () => {
const getAllConnectionsEvent = new EventDidcommConnectionsGetAll({
connections: [],
});
expect(typeof getAllConnectionsEvent.id).toStrictEqual('string');
expect(getAllConnectionsEvent.type).toStrictEqual(
'EventDidcommConnectionsGetAll',
);
expect(getAllConnectionsEvent.timestamp).toBeInstanceOf(Date);
expect(getAllConnectionsEvent.data).toMatchObject({ connections: [] });
});
});
Loading