Skip to content

Sommy#22

Open
amaugosomto wants to merge 2 commits into
masterfrom
sommy
Open

Sommy#22
amaugosomto wants to merge 2 commits into
masterfrom
sommy

Conversation

@amaugosomto

Copy link
Copy Markdown
Collaborator

Added test files for loanRequest and loanRepaid....
Edited function requestLoan to send specific status codes.. And also edited function repaidLoan, added checks for double entry and also added appropriate response status codes.

@amaugosomto amaugosomto requested a review from wilforlan July 4, 2018 08:11
// both cant be the same, because a user cannot be his own guarantor

if (loanObject.userId === loanObject.guarantorId) return res.json({'status': false,
if (loanObject.userId === loanObject.guarantorId) return res.status(403).json({'status': false,

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@wilforlan wilforlan left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The request headers should be settable

@amaugosomto

Copy link
Copy Markdown
Collaborator Author

Okay.. This is what i understand from your review.

You don't want me to set request headers by myself, it should be set by the login test suite and then my test uses it to pass or fail..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants