Closed rak-shit closed 4 years ago
Merging #89 into development will decrease coverage by
4.90%
. The diff coverage is52.00%
.
@@ Coverage Diff @@
## development #89 +/- ##
===============================================
- Coverage 59.92% 55.01% -4.91%
===============================================
Files 14 15 +1
Lines 252 309 +57
Branches 29 35 +6
===============================================
+ Hits 151 170 +19
- Misses 86 120 +34
- Partials 15 19 +4
Impacted Files | Coverage Δ | |
---|---|---|
app/models/Post.js | 66.66% <ø> (ø) |
|
app/routes/post.js | 68.18% <46.15%> (-31.82%) |
:arrow_down: |
app/controllers/post.js | 21.56% <58.33%> (-3.44%) |
:arrow_down: |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact)
,ø = not affected
,? = missing data
Powered by Codecov. Last update 98ce23e...570a140. Read the comment docs.
I have handled the image upload functionality. I have divided it into two parts where one will handle when the image is uploaded and the other one will handle when the image is not uploaded. I have also written the test cases.
Added unit tests for create post API
name: Adds create post functionality. about: Adds the API to create Post.
Screenshots of the response from the server to the given message.
Message
Response
Problem
Github Issue Number: #79 I am adding the ass post API so that the user on the donut platform can add a post.
Type of Change
[ ] New Feature
Checklist
[ ] My code follows the same style as the codebase [ ] I have updated the Readme accordingly [ ] I made PR against development branch [ ] I have run the test cases locally and it's passing. [ ] I have squashed my commits