Unit Tests Validation
DevSecOps Enterprise Pipeline / security-gate-and-deploy (pull_request) Failing after 10s

This commit is contained in:
pm
2026-06-15 23:50:35 +01:00
parent 021e844a4a
commit fb337cfe01
2 changed files with 1 additions and 2 deletions
-1
View File
@@ -8,7 +8,6 @@ const app = express();
app.disable('x-powered-by');
const PORT = process.env.PORT || 3000;
const api_key = 'ghp_1a2b3c4d5e6f7g8h9i0j1k2l3m4n5o6p7q8r'
app.use(cors());
app.use(express.json());
+1 -1
View File
@@ -27,7 +27,7 @@ describe('Enterprise Application Flow & API Validation', () => {
describe('1. Static Web Routing', () => {
it('Should return 200 OK and text/html for the Home Page (/)', async () => {
const response = await request(app).get('/');
expect(response.status).toBe(200);
expect(response.status).toBe(500);
expect(response.headers['content-type']).toMatch(/text\/html/);
});