Forked from
Eclipse Projects / xfsc / Organization Credential Manager / OCM-Engine
377 commits behind the upstream repository.
-
zdravko iliev authoredzdravko iliev authored
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
didComm.e2e-spec.ts 824 B
import { Test, TestingModule } from '@nestjs/testing';
import { INestApplication } from '@nestjs/common';
import request from 'supertest';
import AppModule from '@src/app.module';
describe('DidCommController (e2e)', () => {
let app: INestApplication;
beforeAll(async () => {
const moduleFixture: TestingModule = await Test.createTestingModule({
imports: [AppModule],
}).compile();
app = moduleFixture.createNestApplication();
await app.init();
});
afterAll(async () => {
await app.close();
});
it('/v1/agent/connections/createConnection (POST)', () => {
request(app.getHttpServer())
.post('v1/agent/connections/createConnection')
.expect(200);
});
it('/v1/agent/info (GET)', () => {
request(app.getHttpServer()).post('v1/agent/info').expect(200);
});
});