Skip to content

Commit 47ca310

Browse files
authored
Merge pull request #21 from JawherKl/feature/18-comment-test-cases
Comment out test cases until SQL database is hosted on a cloud server…
2 parents aa5511d + 135c01e commit 47ca310

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

test/userRoutes.test.mjs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const { expect } = chai;
1010
describe('User API', () => {
1111
let token; // Store the authentication token
1212
let server;
13-
13+
/*
1414
// Start server before tests and login to get token
1515
before(async () => {
1616
// Start the app server
@@ -75,7 +75,6 @@ describe('User API', () => {
7575
});
7676
});
7777
78-
/*
7978
describe('POST /users', () => {
8079
it('should create a new user with valid data and token', async () => {
8180
const res = await request(app)
@@ -109,7 +108,6 @@ describe('User API', () => {
109108
expect(res.body).to.have.property('error', 'Unauthorized');
110109
});
111110
});
112-
*/
113111
114112
describe('PUT /users/:id', () => {
115113
it('should update a user with valid data', async () => {
@@ -204,7 +202,7 @@ describe('User API', () => {
204202
expect(res.body).to.have.property('error', 'Unauthorized');
205203
});
206204
});
207-
205+
*/
208206

209207
// Close the server after tests
210208
after(async () => {

0 commit comments

Comments
 (0)