Hi, I’m having some problems passing the Exercise Tracker backend project, all but the /logs endpoint tests fail, all the other endpoints pass the thest.
These are the thest that fail:
-
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.
The thing is, all the expected responses are correct when I test them in my replit, and locally.
Replit link: https://FCC-Excercise-Tracker-API.monkaws624.repl.co
github repo: GitHub - Robertron624/FCC-Excercise-Tracker-API