Updated lint errors and lint fix
Some checks failed
CI/CD Pipeline - Build, Test, and Deploy / 🔒 Security Scan (push) Successful in 9m31s
CI/CD Pipeline - Build, Test, and Deploy / 🏗️ Build & Push Image (push) Has been skipped
CI/CD Pipeline - Build, Test, and Deploy / 🛡️ Image Security Scan (push) Has been skipped
CI/CD Pipeline - Build, Test, and Deploy / 🚀 Deploy to Development (push) Has been skipped
CI/CD Pipeline - Build, Test, and Deploy / 🧪 Test & Lint (push) Failing after 5m0s
CI/CD Pipeline - Build, Test, and Deploy / 🏭 Deploy to Production (push) Has been skipped
CI/CD Pipeline - Build, Test, and Deploy / 🧹 Cleanup (push) Successful in 1s

This commit is contained in:
2025-07-02 16:47:35 -06:00
parent 9a23c1c05b
commit b59b42b57a
8 changed files with 28 additions and 25 deletions

View File

@ -3,7 +3,7 @@ const app = require('../src/app');
describe('Health Check Endpoints', () => {
describe('GET /health', () => {
it('should return basic health status', async () => {
it('should return basic health status', async() => {
const response = await request(app)
.get('/health')
.expect(200);
@ -17,7 +17,7 @@ describe('Health Check Endpoints', () => {
});
describe('GET /health/detailed', () => {
it('should return detailed health information', async () => {
it('should return detailed health information', async() => {
const response = await request(app)
.get('/health/detailed')
.expect(200);
@ -49,7 +49,7 @@ describe('Health Check Endpoints', () => {
expect(response.body.loadAverage).toHaveLength(3);
});
it('should include version information', async () => {
it('should include version information', async() => {
const response = await request(app)
.get('/health/detailed')
.expect(200);
@ -59,7 +59,7 @@ describe('Health Check Endpoints', () => {
});
describe('GET /health/ready', () => {
it('should return readiness status', async () => {
it('should return readiness status', async() => {
const response = await request(app)
.get('/health/ready')
.expect(200);
@ -70,7 +70,7 @@ describe('Health Check Endpoints', () => {
});
describe('GET /health/live', () => {
it('should return liveness status', async () => {
it('should return liveness status', async() => {
const response = await request(app)
.get('/health/live')
.expect(200);
@ -83,7 +83,7 @@ describe('Health Check Endpoints', () => {
});
describe('Health status validation', () => {
it('should return valid timestamp format', async () => {
it('should return valid timestamp format', async() => {
const response = await request(app)
.get('/health')
.expect(200);
@ -93,11 +93,11 @@ describe('Health Check Endpoints', () => {
expect(timestamp.getTime()).not.toBeNaN();
});
it('should return consistent service name across endpoints', async () => {
it('should return consistent service name across endpoints', async() => {
const basicHealth = await request(app).get('/health');
const detailedHealth = await request(app).get('/health/detailed');
expect(basicHealth.body.service).toBe(detailedHealth.body.service);
});
});
});
});