cd2bit / signsfive-api

0 stars 0 forks source link

refactor and add more unit tests for api methods #31

Open meltedspork opened 6 years ago

meltedspork commented 6 years ago

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

Currently we have 5 routes

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.