Skip to content

refactor and add more unit tests for api methods #31

Description

@meltedspork

We want to add more comprehensive unit test with api methods.

Currently we have 5 routes

  • / (return listed routes)
  • /name (return name of app)
  • /version (return current version of app)
  • /categories (return static data)
  • /signs/12345 (this is fake static data)

Right now we have only one sort of valuable test in generic test/test.js and currently only tests /version. We will want to reorganize the file names to making where it makes more sense.

Note: /categories and /signs/12345 require jwt auth. but we can use proxyquire https://github.com/thlorenz/proxyquire to stub auth process so we can bypass this for testing.

Metadata

Metadata

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions