This pull request introduces a new endpoint for deleting users from the database. It also includes the necessary route handling and unit tests to ensure the functionality works as expected.
Summary
Added a new route handler in routes/user.routes.js for the delete user endpoint.
Integrated the delete user route into app.js to make it accessible.
Created a new test file test/user.test.js to cover the new delete user functionality with unit tests.
Utilized express, mongoose, and chai libraries to implement and test the feature.
Ensured that the delete operation is protected by authentication middleware.
Fixes #96.
π Latest improvements to Sweep:
New dashboard launched for real-time tracking of Sweep issues, covering all stages from search to coding.
Integration of OpenAI's latest Assistant API for more efficient and reliable code planning and editing, improving speed by 3x.
PR Feedback (click)
Description
This pull request introduces a new endpoint for deleting users from the database. It also includes the necessary route handling and unit tests to ensure the functionality works as expected.
Summary
routes/user.routes.js
for the delete user endpoint.app.js
to make it accessible.test/user.test.js
to cover the new delete user functionality with unit tests.express
,mongoose
, andchai
libraries to implement and test the feature.Fixes #96.
π Latest improvements to Sweep:
π‘ To get Sweep to edit this pull request, you can:
This is an automated message generated by Sweep AI.