Real-Dev-Squad / website-backend

The backend code for all our website-related apps
https://api.realdevsquad.com/
MIT License
46 stars 201 forks source link

test cases for activity feed backend #1976

Closed palakgupta2712 closed 3 months ago

palakgupta2712 commented 3 months ago

Date: 19/04/2024

Developer Name: Palak Gupta


Issue Ticket Number

closes https://github.com/Real-Dev-Squad/website-dashboard/issues/700 Test cases for https://github.com/Real-Dev-Squad/website-backend/pull/1970

Description

Documentation Updated?

Under Feature Flag

Database Changes

Breaking Changes

Development Tested?

Screenshots

Screenshot 1

Test Coverage

Integration tests:-

image

---------------------------------------- --------- ---------- --------- --------- ----------------------------- File % Stmts % Branch % Funcs % Lines Uncovered Line #s

/controllers logs.js | 83.33 | 90 | 100 | 82.35 | 20-21,57-63,73-74
/models logs.js | 79.06 | 75.38 | 84.21 | 78.15 | 28-29,55,58-69,100-101,120-122,128-129,149-150,155-156,177,186-187,189-190,236-237

Unit tests:-

image

---------------------------------------- --------- ---------- --------- --------- ----------------------------- File % Stmts % Branch % Funcs % Lines Uncovered Line #s

/models
logs.js | 82.17 | 64.61 | 100 | 84.03 | 28-29,55,85-93,100-101,128-129,155-156,236-237

Note:- Will be creating a issue ticket to improve upon the test coverage for logs.js. Didn't cover the existing functionality of logs completely in the tests.

Related Tickets

Additional Notes