What’s happening?
Hello everyone!
I finished the exercise tracker project and I have tested every single use case for project and it seems to be working fine. However, the following tests are not being passed:
Failed tests:
- A request to a user’s log
GET /api/users/:_id/logs
returns a user object with acount
property representing the number of exercises that belong to that user. - A
GET
request to/api/users/:id/logs
will return the user object with alog
array of all the exercises added. - Each item in the
log
array that is returned fromGET /api/users/:id/logs
is an object that should have adescription
,duration
, anddate
properties. - The
description
property of any object in thelog
array that is returned fromGET /api/users/:id/logs
should be a string. - The
duration
property of any object in thelog
array that is returned fromGET /api/users/:id/logs
should be a number. - The
date
property of any object in thelog
array that is returned fromGET /api/users/:id/logs
should be a string… Use thedateString
format of theDate
API.
Can you help me find my mistake(s)? I checked everything and it seems ok.
Link to the project:
https://replit.com/@lambolead/boilerplate-project-exercisetracker#server.js
Browser info:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.61 Safari/537.36 Edg/94.0.992.31
Challenge: Exercise Tracker
Link to the challenge: