Skip to content

Commit

Permalink
test: add test for health service
Browse files Browse the repository at this point in the history
  • Loading branch information
joannechen1223 committed Feb 24, 2024
1 parent 9edf232 commit 483a585
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions apps/recnet-api/src/modules/health/health.service.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { HealthService } from './health.service';

describe('HealthSErvice', () => {
let healthService: HealthService;

beforeEach(async () => {
healthService = new HealthService();
});

it('should return status ok', async () => {
const result = await healthService.getHealth();
expect(result).toEqual({ status: 'OK' });
});
});

0 comments on commit 483a585

Please sign in to comment.