Please help! 2 tests not passing. Back End Development and APIs Projects - Exercise Tracker

Tell us what’s happening:

I can’t get two tests to pass:

  • Each item in the log array that is returned from GET /api/users/:_id/logs is an object that should have a description , duration , and date properties.
  • The description property of any object in the log array that is returned from GET /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

The description property of any object in the log array

Your code:

{
    "username": "fcc_test_17039758646",
    "count": 1,
    "_id": "65909bbaf71c8f92fbd790ea",
    "log": [
        {
            "decription": "test",
            "duration": 60,
            "date": "Sat Dec 30 2023"
        }
    ]
}

description not decription

Omg what a silly mistake to miss. I had been looking at the code for too long that I couldn’t see the difference one letter makes to a word anymore :joy:

Thanks so much!

Happy to help.

Typos are a leading cause of headaches in coding. They are practically inevitable. I use a spell checker extension in VS Code which is handy.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.