From 483a585355f2f982cf810aff3d6e04fd12fc6bc2 Mon Sep 17 00:00:00 2001 From: joannechen1223 Date: Sat, 24 Feb 2024 02:33:11 -0500 Subject: [PATCH] test: add test for health service --- .../src/modules/health/health.service.spec.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 apps/recnet-api/src/modules/health/health.service.spec.ts diff --git a/apps/recnet-api/src/modules/health/health.service.spec.ts b/apps/recnet-api/src/modules/health/health.service.spec.ts new file mode 100644 index 00000000..91c94e7d --- /dev/null +++ b/apps/recnet-api/src/modules/health/health.service.spec.ts @@ -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' }); + }); +});