Skip to content

Commit

Permalink
Added user testing
Browse files Browse the repository at this point in the history
  • Loading branch information
TheGElCOgecko committed Apr 10, 2024
1 parent e476869 commit d670dd6
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
1 change: 1 addition & 0 deletions backend/services/roommate.services.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,5 @@ exports.getAllRoommateFormsService = async (params, body) => {
*********************************/
setTimeout(function() { // third set of tests to run (user, org, roommate)
console.log("I am roommate testing, I am running");

}, 15000);
23 changes: 22 additions & 1 deletion backend/services/user.services.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,27 @@ exports.deleteUserByIdService = async(params, body) => {
/*********************************
************ TESTING ************
*********************************/
setTimeout(function() { // first set of tests to run (user, org, roommate)
setTimeout(function() { // first set of tests to run (user, org, roommate)
console.log("I am user testing, I am running");
let body1 = {
'name': "Martin",
'email': "[email protected]",
'phoneNumber': "911"
}
let params1 = {
'userId': 102930
}
let body2 = {
'name': "NotaName",
'email': "[email protected]",
'phoneNumber': "0"
}
let params2 = {
'userId': 10000000
}
let user = addUserService(body1, params1); console.log("Add User: ", user);
//let user_no = addUserService(body1, params1); console.log("Do not add existing user: ", user_no);
//let findUser = getUserByIdService(body1, params1); console.log("Find added user", findUser);
//let updateUser = updateUserByIdService(body2, params1); console.log("Update user: ", updateUser);
//let deleteUser = deleteUserByIdService(body2, params1); console.log("Delete user: ", deleteUser);
}, 5000);

0 comments on commit d670dd6

Please sign in to comment.