Tell us what’s happening:
These tests fail :
/api/users/:id/logswill return the user object with a
logarray of all the exercises added.
dateproperty of any object in the
logarray that is returned from
GET /api/users/:id/logsshould be a string… Use the
dateStringformat of the
- You can add
limitparameters to a
GET /api/users/:_id/logsrequest to retrieve part of the log of any user.
toare dates in
limitis an integer of how many logs to send back.
It looks on my side as if all the tests should pass :
- my GET requests work and return a seemingly correct JSON with the log
- the dates in the log are strings obtained with toDateString() and seem right
- my own tests on limit, to and from seem to work
What’s wrong ???
Your project link(s)
Your browser information:
User Agent is:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:97.0) Gecko/20100101 Firefox/97.0
Challenge: Exercise Tracker
Link to the challenge: