I am having issue with the Exercise Tracker test failing for the requirement below. I don’t see any reason it’s failing because the returned object when I add an exercise is the same as what the example App gives.
Does anyone know what I am doing wrong?
I can add an exercise to any user by posting form data userId(_id), description, duration, and optionally date to /api/exercise/add.
If no date supplied it will use current date. App will return the user object with the exercise fields added.
The reason I used userId instead of _id is, that is what the example App is returning the ID as. Look at the returned object below that I got from the examples App. It looks like there are some inconsistencies between what the test requires and what the example shows and also general vagueness in this exercise.
{"userId":"5ec3c38cc530e526ad533782","description":"blaaaaaaaaaaaaa","duration":45345345,"date":"Tue Jun 02 2020","username":"5WfZFvsBK"}