Forked from
Eclipse Projects / xfsc / Organization Credential Manager / OCM-Engine
389 commits behind the upstream repository.
-
Berend Sliedrecht authored
Signed-off-by:
Berend Sliedrecht <blu3beri@proton.me>
Berend Sliedrecht authoredSigned-off-by:
Berend Sliedrecht <blu3beri@proton.me>
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
health.e2e-spec.ts 623 B
import { Test, TestingModule } from '@nestjs/testing';
import { INestApplication } from '@nestjs/common';
import request from 'supertest';
import AppModule from '@src/app.module';
describe('HealthController (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('/health (GET)', () => request(app.getHttpServer()).get('/health').expect(200));
});