fxa/packages/fxa-support-panel/test/app.e2e-spec.ts

26 строки
640 B
TypeScript

import { INestApplication } from '@nestjs/common';
import { Test, TestingModule } from '@nestjs/testing';
import request from 'supertest';
import { AppModule } from '../src/app.module';
describe('AppController (e2e)', () => {
let app: INestApplication;
beforeEach(async () => {
const moduleFixture: TestingModule = await Test.createTestingModule({
imports: [AppModule],
}).compile();
app = moduleFixture.createNestApplication();
await app.init();
});
it('/__version__ (GET)', () => {
return request(app.getHttpServer())
.get('/__lbheartbeat__')
.expect(200)
.expect('{}');
});
});