I am having trouble when checking if the tests passes on the challenge page. I’m getting these tests as failed
-
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. -
Failed:A
GET
request to/api/users/:_id/logs
will return the user object with alog
array of all the exercises added. -
Failed:Each item in the
log
array that is returned fromGET /api/users/:_id/logs
is an object that should have adescription
,duration
, anddate
properties. -
Failed:The
description
property of any object in thelog
array that is returned fromGET /api/users/:_id/logs
should be a string. -
Failed:The
duration
property of any object in thelog
array that is returned fromGET /api/users/:_id/logs
should be a number. -
Failed: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.
Even after checking manually if the app works right. I’ll drop the link of the Replit project so you can check it out.
Thank you
solution: project-exercisetracker - Node.js Repl - Replit
Link to the challenge: