Gitleaks Validation #25
@@ -8,7 +8,6 @@ const app = express();
|
|||||||
app.disable('x-powered-by');
|
app.disable('x-powered-by');
|
||||||
|
|
||||||
const PORT = process.env.PORT || 3000;
|
const PORT = process.env.PORT || 3000;
|
||||||
const api_key = 'ghp_1a2b3c4d5e6f7g8h9i0j1k2l3m4n5o6p7q8r'
|
|
||||||
|
|
||||||
app.use(cors());
|
app.use(cors());
|
||||||
app.use(express.json());
|
app.use(express.json());
|
||||||
|
|||||||
+1
-1
@@ -27,7 +27,7 @@ describe('Enterprise Application Flow & API Validation', () => {
|
|||||||
describe('1. Static Web Routing', () => {
|
describe('1. Static Web Routing', () => {
|
||||||
it('Should return 200 OK and text/html for the Home Page (/)', async () => {
|
it('Should return 200 OK and text/html for the Home Page (/)', async () => {
|
||||||
const response = await request(app).get('/');
|
const response = await request(app).get('/');
|
||||||
expect(response.status).toBe(200);
|
expect(response.status).toBe(500);
|
||||||
expect(response.headers['content-type']).toMatch(/text\/html/);
|
expect(response.headers['content-type']).toMatch(/text\/html/);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user