Unit Tests Validation
DevSecOps Enterprise Pipeline / security-gate-and-deploy (pull_request) Failing after 10s
DevSecOps Enterprise Pipeline / security-gate-and-deploy (pull_request) Failing after 10s
This commit is contained in:
@@ -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
@@ -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/);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user