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
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:
@ -3,7 +3,7 @@ const app = require('../src/app');
|
||||
|
||||
describe('API Endpoints', () => {
|
||||
describe('GET /api/system', () => {
|
||||
it('should return system information', async () => {
|
||||
it('should return system information', async() => {
|
||||
const response = await request(app)
|
||||
.get('/api/system')
|
||||
.expect(200);
|
||||
@ -18,7 +18,7 @@ describe('API Endpoints', () => {
|
||||
});
|
||||
|
||||
describe('GET /api/memory', () => {
|
||||
it('should return memory information', async () => {
|
||||
it('should return memory information', async() => {
|
||||
const response = await request(app)
|
||||
.get('/api/memory')
|
||||
.expect(200);
|
||||
@ -33,7 +33,7 @@ describe('API Endpoints', () => {
|
||||
});
|
||||
|
||||
describe('GET /api/process', () => {
|
||||
it('should return process information', async () => {
|
||||
it('should return process information', async() => {
|
||||
const response = await request(app)
|
||||
.get('/api/process')
|
||||
.expect(200);
|
||||
@ -47,7 +47,7 @@ describe('API Endpoints', () => {
|
||||
});
|
||||
|
||||
describe('GET /api/metrics', () => {
|
||||
it('should return application metrics', async () => {
|
||||
it('should return application metrics', async() => {
|
||||
const response = await request(app)
|
||||
.get('/api/metrics')
|
||||
.expect(200);
|
||||
@ -62,7 +62,7 @@ describe('API Endpoints', () => {
|
||||
});
|
||||
|
||||
describe('GET /api/test', () => {
|
||||
it('should return test response', async () => {
|
||||
it('should return test response', async() => {
|
||||
const response = await request(app)
|
||||
.get('/api/test')
|
||||
.expect(200);
|
||||
@ -75,7 +75,7 @@ describe('API Endpoints', () => {
|
||||
});
|
||||
|
||||
describe('Error handling', () => {
|
||||
it('should return 404 for unknown API endpoints', async () => {
|
||||
it('should return 404 for unknown API endpoints', async() => {
|
||||
const response = await request(app)
|
||||
.get('/api/nonexistent')
|
||||
.expect(404);
|
||||
@ -84,4 +84,4 @@ describe('API Endpoints', () => {
|
||||
expect(response.body.error).toBe('Not Found');
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user