-
Notifications
You must be signed in to change notification settings - Fork 14
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
Profile update test #53
base: master
Are you sure you want to change the base?
Profile update test #53
Conversation
Updating my fork
I have written the test for user profile please check it and tell me my mistakes. I did not know how to run it as I havent understood how the person in the codebase is sending which response on updating user profile
Thanks @harshil15999, for opening the pull request! 🙌 |
Codecov Report
@@ Coverage Diff @@
## master #53 +/- ##
=======================================
Coverage 67.67% 67.67%
=======================================
Files 7 7
Lines 99 99
Branches 5 5
=======================================
Hits 67 67
Misses 31 31
Partials 1 1 Continue to review full report at Codecov.
|
password:'123', | ||
teams:['2','3'] | ||
} | ||
chai.request('http://localhost:3000') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not the correct way. check sample code repo
.send(update) | ||
.end((err,res)=>{ | ||
res.should.have.status(200); | ||
res.body.should.be.json; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
check responses individually, like expect the response to contain new data
Please see the code and revert back .
Few doubts
Resolves #42