Tell us what’s happening:
All but one put and delete requests are failing. However, I’m looking at the res.send results and they match the sample project perfectly. I’m at a loss.
Sky020, that console tip actually helped me a lot in a previous challenge. However, in this challenge it is unclear to me what the problem is. The first error I see is that NaN expected to be above NaN. However, as the results appear to be identical to the example project I don’t know where to look for that. And I don’t see anything else in that message that clarifies.
Meaning one of your conditions is for error handling is firing when it should not be. The other errors that read expected x to deeply equal x suggests your response has typos.
Here is a link to the tests, if you want to go through them, and try to replicate the output:
For anyone else that might experience the same issue. The GET test passed even though I failed to include _ID as one of the fields. However, the PUT test then assumed a proper GET (including _ID) as a way to test that PUT worked properly. So once I fixed my GET my PUT passed the test.
Lifesaver! I stared at my PUT request for many hours today alone comparing every little thing - even found the example site had an error that shouldn’t have passed. My GET was passing, but I reexamined it after seeing your comment and that fixed my PUT request.
I had to fix the way my find() filtered _id and open. Switched to ObjectId and specified whether open was a boolean or a string. Hope this helps someone else!