It’s probably not going to pass since you have to implement the POST routes in their entirety for the tests to work properly. When I add some logging to your POST exercise and GET log routes, I get this output when the tests supply a date:
adding exercise for 6235227e00bcf90453b9be54
"date": "Mon Jan 01 1990",
so the record is created. Without a date (like in most tests), I get:
Instead of testing if req.body.date is an empty testing, I have tested it if it is either an empty string or undefined if(req.body.date === "" || req.body.date=== "undefined"), and now I have all the tests that concern the /logs working.