We want to add more comprehensive unit test with api methods.
Currently we have 5 routes
[x] / (return listed routes)
[x] /name (return name of app)
[x] /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 proxyquirehttps://github.com/thlorenz/proxyquire to stub auth process so we can bypass this for testing.
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.