Due to incomplete understanding of Node js and mangoose. I decided to temporarily fix it with crutches, after passing the tests, rewrite it as expected.
exercise:
passes 9 tests, after which problems begin.
compared the finished project with mine.
in test 10:
the proposed project returns count as a number, my project passes validation if I return a string.
in test 11:
the situation is not clear at all.
firstly, if I return an array with objects, the test fails, if I return an array with a string, then it passes.
secondly, the exercises are sorted in reverse order in the original.
the result of the output of the finished project and mine.
{"_id":“614a6169b7b3850576ff0e70”,“username”:“fcc_test_16322645528”,“count”:2,“log”:[{“description”:“test”,“duration”:60,“date”:“Tue Jan 02 1990”},{“description”:“test”,“duration”:60,“date”:“Mon Jan 01 1990”}]}
my
{"_id":“11”,“username”:“fcc_test_16322650535”,“count”:“2”,“log”:[{“description”:“test”,“duration”:60,“date”:“Tue Jan 02 1990”},{“description”:“test”,“duration”:60,“date”:“Mon Jan 01 1990”}]}
Your project link(s)
solution: https://replit.com/@VladimirKomiak/FFC-APIs-and-Microservices-project-exercisetracker
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/93.0.4577.82 Safari/537.36
Challenge: Exercise Tracker
Link to the challenge: