Skip to content

Ntu api unit tests#61

Merged
nsmzoneli merged 14 commits into
devfrom
ntu_api_unit_tests
May 17, 2026
Merged

Ntu api unit tests#61
nsmzoneli merged 14 commits into
devfrom
ntu_api_unit_tests

Conversation

@Ntuuu
Copy link
Copy Markdown
Contributor

@Ntuuu Ntuuu commented May 15, 2026

What does this PR do?

Added all the api testing code as well as the api/cognito information doc, will serve as a baseline for api TDD

Related issue

progress?

How to test

assuming in main director:
"cd backend", and then
"npm test" and that should run all tests, at the moment though, it will be all fails until the API routes are completed

MbathaN added 2 commits May 15, 2026 18:19
… through the use of testing helper function for common response types
… a testingFactor function to test multiple functions at the same time and then also changed the api doc.html such that it no longer flags accessibility issues by allowing users to have keyboard input in order to navigate the document
@sonarqubecloud
Copy link
Copy Markdown

Copy link
Copy Markdown
Contributor

@nsmzoneli nsmzoneli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unit tests look fine. no necessary changes

@nsmzoneli nsmzoneli merged commit 6050e55 into dev May 17, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants