Tell us what’s happening:
I can’t get two tests to pass:
- 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.
I’ve console.logged the response from GET /api/users/:_id/logs
and every single response looks like it should be passing. I did notice that when POSTING exercises, some of the submissions from the test don’t include a Date, but my code is written to submit the current date if no date is provided, so that shouldn’t be causing an issue.
Everything else is passing but I can’t figure out why I can’t get these two to pass.
Thanks in advance for your help!
###Your project link(s)
solution: boilerplate-project-exercisetracker - Replit
Your browser information:
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36
Challenge Information:
Back End Development and APIs Projects - Exercise Tracker