Skip to content

Latest commit

 

History

History
11 lines (7 loc) · 518 Bytes

File metadata and controls

11 lines (7 loc) · 518 Bytes

node-ts-code-test

Get it running: npm i npm run test or npm start

We have a bug in our app, and we need to implement delete user.

The api/tasks?userId=1 is returning all tasks for all users rather than just the user with id 1 - this is a security issue, so let's fix that first. There are tests in /test/app.test.ts.

Next, we need a way to clean up and remove users. Implement a DELETE for /users/:id to remove a user by id as a path argument. Write a test to ensure the task is being removed correctly.