codeuino / social-platform-donut-backend

Donut API:
http://donut-api-prod.codeuino.org/
GNU General Public License v3.0
24 stars 57 forks source link

updated test cases and api codes #119

Closed Rupeshiya closed 4 years ago

Rupeshiya commented 4 years ago

name: Updated failing test cases about: updated test cases and API codes title: ''Test cases" labels: ''bug" assignees: ''Rupeshiya"


Problem

Github Issue Number: #118 The test cases for comment and post, events were failingl_

Solution of problem

Written test cases to fix them

In Case of UI Changes

No changes required

Type of Change

[✓] Bug fix [ ] New Feature [ ] Development of UI/UX prototypes [✓] Small refactor [ ] Change in Documentation

Checklist

[✓] My code follows the same style as the codebase [ ] My Code change requires a change in documentation [ ] 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

codecov[bot] commented 4 years ago

Codecov Report

Merging #119 into development will increase coverage by 4.62%. The diff coverage is 67.08%.

Impacted file tree graph

@@               Coverage Diff               @@
##           development     #119      +/-   ##
===============================================
+ Coverage        64.21%   68.84%   +4.62%     
===============================================
  Files               20       26       +6     
  Lines              394      690     +296     
  Branches            53       96      +43     
===============================================
+ Hits               253      475     +222     
- Misses             122      192      +70     
- Partials            19       23       +4     
Impacted Files Coverage Δ
app/models/Comment.js 85.71% <ø> (ø)
app/models/Organisation.js 55.55% <ø> (ø)
app/models/Post.js 66.66% <ø> (ø)
app/controllers/organization.js 53.22% <23.80%> (-4.67%) :arrow_down:
app/controllers/user.js 57.14% <40.90%> (+2.21%) :arrow_up:
app/controllers/auth.js 85.71% <50.00%> (+1.09%) :arrow_up:
app/controllers/urlShortner.js 40.47% <50.00%> (+28.93%) :arrow_up:
app/models/Event.js 61.90% <50.00%> (ø)
app/controllers/event.js 64.78% <64.78%> (ø)
app/controllers/post.js 69.44% <69.01%> (+44.44%) :arrow_up:
... and 16 more

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 92b6a55...cd5a535. Read the comment docs.

Rupeshiya commented 4 years ago

@devesh-verma Please review!!

jaskiratsingh2000 commented 4 years ago