Fix: e2e test
All checks were successful
Build and push image / release-image (push) Successful in 1m38s
All checks were successful
Build and push image / release-image (push) Successful in 1m38s
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { Test, TestingModule } from '@nestjs/testing';
|
||||
import { INestApplication } from '@nestjs/common';
|
||||
import { ConfigModule } from '@nestjs/config';
|
||||
import * as request from 'supertest';
|
||||
import { App } from 'supertest/types';
|
||||
import { AppModule } from './../src/app.module';
|
||||
@@ -16,10 +17,10 @@ describe('AppController (e2e)', () => {
|
||||
await app.init();
|
||||
});
|
||||
|
||||
it('/ (GET)', () => {
|
||||
it('/healthz (GET)', () => {
|
||||
return request(app.getHttpServer())
|
||||
.get('/')
|
||||
.get('/healthz')
|
||||
.expect(200)
|
||||
.expect('Hello World!');
|
||||
.expect('OK');
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user