Skip to content
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

Write Unit Tests for User Profile Features #16

Open
ANJALIJAISWAL4213 opened this issue Dec 16, 2024 · 3 comments
Open

Write Unit Tests for User Profile Features #16

ANJALIJAISWAL4213 opened this issue Dec 16, 2024 · 3 comments
Assignees
Labels

Comments

@ANJALIJAISWAL4213
Copy link
Collaborator

Description:
Write unit tests to ensure reliability for user profile-related operations, including creating profiles, editing them, and fetching the portfolio.

Tasks:

Write tests for POST /api/users/profile to ensure new user profiles are created successfully.
Write tests for PUT /api/users/profile/:id to validate correct updates to a user’s bio/skills or profile picture.
Write tests for GET /api/users/profile/:id/portfolio to validate fetching a user’s portfolio data.
Use Jest (or a similar testing framework) to mock database interactions with MongoDB.
Handle edge cases such as invalid data submissions, database connection failures, or missing fields.

Estimated Time: 48 hours

Please claim this issue

@MishtiGarg250
Copy link

claim

@Opencodeiiita-Bot
Copy link

Hey @MishtiGarg250

Since you have not registered, you can't work on this issue. If you have already registered on unstop & joined discord server after registering on https://events.geekhaven.in, then contact organisers.

Thanks for your interest in OpenCode'24 ✨✨!

@MishtiGarg250
Copy link

claim

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants