Hi, The test script must have a bug, as my app is generating the correct output.
It fails one test all of the time:
Failed: The response returned from POST /api/users/:_id/exercises will be the user object with the exercise fields added. Below are two responses from the POST /api/users/:_id/exercises which show the correct response format
Also the below test Passed this time, but it can fail depending on what time of day I run the test.
Passed: The date property of any object in the log array that is returned from GET /api/users/:_id/logs should be a string. Use the dateString format of the Date API.
Example Output from my app: {“description”:“test”,“duration”:60,“date”:“Tue Apr 04 2023”}
Thank you very much, lasjorg. That indeed was the issue for that test. I fixed it and completed the assignment.
Just curious to know why the second last test fails in the evening EST, and passes in the first half of the day. There may be some issue with the time zone?
Anyway, I’m moving on to the next assignment.
Thanks again.
Hi,
I’m in New York, EST, which was UTC -4 at the time I got mine to work.
I passed the test by running earlier in the day. Any time before 6pm +/- worked for me.
Good luck.