Skip to content

Comment out test cases until SQL database is hosted on a cloud server… #21

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions test/userRoutes.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const { expect } = chai;
describe('User API', () => {
let token; // Store the authentication token
let server;

/*
// Start server before tests and login to get token
before(async () => {
// Start the app server
Expand Down Expand Up @@ -75,7 +75,6 @@ describe('User API', () => {
});
});

/*
describe('POST /users', () => {
it('should create a new user with valid data and token', async () => {
const res = await request(app)
Expand Down Expand Up @@ -109,7 +108,6 @@ describe('User API', () => {
expect(res.body).to.have.property('error', 'Unauthorized');
});
});
*/

describe('PUT /users/:id', () => {
it('should update a user with valid data', async () => {
Expand Down Expand Up @@ -204,7 +202,7 @@ describe('User API', () => {
expect(res.body).to.have.property('error', 'Unauthorized');
});
});

*/

// Close the server after tests
after(async () => {
Expand Down
Loading