Tell us what’s happening:
I’m currently working on test 4 (Posting to “/api/users/:_id/exercises”) and for some reason, the test will not pass despite my responding json object being identical to the example except for my id system being significantly more simple (The test still inputs the correct ID’s so presumably this not the problem). I’ve logged just about every part to make sure i am not missing some specific use case they are checking (which I initially was) and I am completely stumped.
Im now also failing test 7 despite having a functioning output that works for the test cases used. I assume this is somehow related to failing test 4 but again, I am completely stumped as to what my issue is. Data types and post outputs match that of the example website so any advice on where to look to find what may be causing my test to fail would be greatly appreciated.
Ahhhh i forgot i nested my solution for limit within the conditional for a for/to value. Thats passed me for test 7 so thank you very much now down to test 4…
edit: The issue with test 4 was ID’s being random numbers instead of mongoose objectID’s, got the project to pass now