Skip to content

Add tests for the API's /list endpoint

Niels requested to merge unit-tests into master

@bartjkdp I've added tests for:

  • getting the available APIs (this is static for now, but will be dynamic once we read files from /data)
  • the listAPIHandler which should return a 200, content type application/json and stringified version of the result from getAvailableApis (which can be mocked)

I'd like to get some feedback on this approach. Is this along the lines of how to write an HTTP API in golang?

Merge request reports