Not Passing Route Test Even Though Code Is Working - With: Quality Assurance Projects - Issue Tracker -

I don’t understand what’s going on.
My code is returning, what I believe to be, the write object and such, but I’m only passing one of the FCC’s route GET Test.

Side note: FCC’s that is cloned from has the _id field as required which means that the form wont let you submit it until the _id is entered, but one of the test is that if the _id is left blank then res.json({ error: “missing _id”}) and that test will always fail no matter what if the required attribute isn’t removed from the form in html.

I’ve been trying to figure this out for over a week.

I don’t know if I’m doing something wrong or not.

Please look over my route code and see if there is something wrong.

Here’s the link to my project:

Here’s the link to the test page:
Quality Assurance Projects - Issue Tracker | Learn |

Hello @nwbray-code

With filters like the following your app seems to be returning a single issue instead of all matching issues.


Also I believe you should return an array even when returning a single object.