Skip to content

Commit

Permalink
update app.js
Browse files Browse the repository at this point in the history
  • Loading branch information
ZinxValkyria committed May 31, 2024
1 parent 2455911 commit 6266a70
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,19 @@ const axios = require('axios');
const crypto = require('crypto');
const ejs = require('ejs');
const path = require('path');
const request = require('supertest');
const app = require('../app'); // Adjust the path based on your directory structure

describe('GET /', () => {
test('It should respond with status 200 and render index page', async () => {
const response = await request(app).get('/');
expect(response.status).toBe(200);
expect(response.text).toContain('index');
});
});

// Add more tests for other routes...


const app = express();
const PORT = process.env.PORT || 3000;
Expand Down

0 comments on commit 6266a70

Please sign in to comment.