SE701-T5 / Backend

Heroku deployed Node.js backend server developed by Team-5 for the UniForum project associated with the University of Auckland SOFTENG 701 course
https://uni-forum.herokuapp.com/
MIT License
2 stars 18 forks source link

cleanup tests #97

Closed j-chad closed 2 years ago

j-chad commented 2 years ago

Is your feature request related to a problem? Please describe. The tests as they stand are not ideal. They rely on having an active connection to a database and do not have good test coverage, missing many bugs.

Describe the solution you'd like We should take some time to refactor the tests and re-write some more thoughtful tests.

Additional context In issue #90 an in-memory database was added which can be used for tests. Use the top of the authorisation tests for example usage (the test file wasn't fully refactored as we needed to get ts support merged).

Checklist: