Yes, the test case ensures it return proper error of 404, when there is no help center topics from the DB, while maintain the main functionality of fetch all help center topics if it is present on the DB.
Screenshots (if appropriate - Postman, etc):
WHEN NO TOPICS IS PRESENT:
WHEN THERE IS A TOPIC
Types of changes
[X] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
Checklist:
[X] My code follows the code style of this project.
Description
Fixed the error handling to properly return 404 error when no topic has been created priorly. API DOC LINK
Related Issue (Link to Github issue)
#270
How Has This Been Tested?
Yes, the test case ensures it return proper error of 404, when there is no help center topics from the DB, while maintain the main functionality of fetch all help center topics if it is present on the DB.
Screenshots (if appropriate - Postman, etc):
WHEN NO TOPICS IS PRESENT:
WHEN THERE IS A TOPIC
Types of changes
Checklist: