Added unit tests via supertest, mocha

This commit is contained in:
2025-08-18 17:12:23 -04:00
parent c00d631e9f
commit e4384f53a4
5 changed files with 1417 additions and 50 deletions

10
test/app.test.js Normal file
View File

@@ -0,0 +1,10 @@
const request = require('supertest');
const { expect } = require('chai');
const app = require('../src/app');
describe('GET /', () => {
it('should run the app server', async () => {
const res = await request(app).get('/');
expect(res.status).to.equal(200);
});
});