Hello. I have almost finished the issue tracker challenge, the tests all pass and it works as expected.
But it does not pass the system tests. I get the error returned
You can send a GET request to /api/issues/{projectname} for
an array of all issues for that specific projectname, with all
the fields present for each issue. (Test timed out)
You can send a GET request to /api/issues/{projectname} and
filter the request by also passing along any field and value as
a URL query (ie. / Api / issues / {project}? Open = false). You
can pass one or more field / value pairs at once. (Test timed out)
The fact is that the last GET
routing statement, res.send(data)
returns this data structure:
[
{
_id: 6061a01f28eb7c01250ae79a,
project_name: 'get_issues_test_718990',
issue_text: 'Get Issues Test',
created_by: 'fCC',
issue_title: 'Faux Issue 1',
created_on: 2021-03-29T09:38:39.100Z,
updated_on: 2021-03-29T09:38:39.100Z,
open: true,
__v: 0
},
{
_id: 6061a02028eb7c01250ae79b,
project_name: 'get_issues_test_718990',
issue_text: 'Get Issues Test',
created_by: 'fCC',
issue_title: 'Faux Issue 2',
created_on: 2021-03-29T09:38:40.114Z,
updated_on: 2021-03-29T09:38:40.114Z,
open: true,
__v: 0
},
{
_id: 6061a02128eb7c01250ae79c,
project_name: 'get_issues_test_718990',
issue_text: 'Get Issues Test',
created_by: 'fCC',
issue_title: 'Faux Issue 3',
created_on: 2021-03-29T09:38:41.459Z,
updated_on: 2021-03-29T09:38:41.459Z,
open: true,
__v: 0
}
]
}
which seems to me to match exactly what the problem is asking for (an array of all issues for that specific projectname
).
What could be the problem?
What do you expect to actually receive the system test?
This is the link to replit in the case you want to give an eye to it.