Skip to content

Commit

Permalink
test: fix /health e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
omermujtaba18 committed Aug 28, 2024
1 parent 95c718d commit 7d0c642
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/resources/health/health.controller.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import { Controller, Get } from '@nestjs/common';
import { Health } from './entities/health.entity';
import { ApiOkResponse, ApiOperation, ApiTags } from '@nestjs/swagger';
import { SkipJwtauth } from '../../common/decorators/skip-jwtauth/skip-jwtauth.decorator';

@SkipJwtauth()
@ApiTags('health')
@Controller('health')
export class HealthController {
4 changes: 4 additions & 0 deletions test/health.e2e-spec.ts
Original file line number Diff line number Diff line change
@@ -15,6 +15,10 @@ describe('HealthController (e2e)', () => {
await app.init();
});

afterAll(async () => {
await app.close();
});

it('/health (GET)', () => {
return request(app.getHttpServer())
.get('/health')

0 comments on commit 7d0c642

Please sign in to comment.