-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e476869
commit d670dd6
Showing
2 changed files
with
23 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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); |