Info about the related issue
Added user unit test in backend using mocha and chai
Closes: #20
Describe the changes you've made
Added MongoDbURI for test and production/development as we will be clearing entire database after running test cases, so it's better to use two database where there is no risk for clearing our main database.
Modified URL in server based on NODE_ENV.
Added user unit test cases
Type of change
What sort of change have you made:
[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[x] Enhancement in the existing features
[ ] Other
Mention any unusual behaviour of your code (Write NA if not)
NA
Checklist:
[x] My code follows the guidelines of this project.
[x] I have performed a self-review of my own code.
[x] I have commented my code, particularly wherever it was hard to understand.
[x] My changes generate no new warnings.
[x] I have verified/tested my code by running it locally.
Additional Info (optional)
Please before merging add Hactoberfest accept and medium/hard label
@sohan2410 Thank you for Opening pull request. We will get back to you as soon as possible. Your patience is greatly appreciated! Thanks! 🥳.
PS: Please double check that you linked the corresponding issue.
Related Issue
Closes: #20
Describe the changes you've made
server
based onNODE_ENV
.Type of change
What sort of change have you made:
Mention any unusual behaviour of your code (Write NA if not)
NA
Checklist:
Additional Info (optional)
Please before merging add Hactoberfest accept and medium/hard label