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:
[x] I have double-checked that the issue does not currently exist.
[x] I have added the appropriate labels (e.g. bug, enhancement, new feature).
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: