arena-js
arena-js copied to clipboard
Better testing
Need to find a more sane way to run tests. Shouldn't bog down the live API with requests. Currently tests are very repetitive and only test path construction and parameter interpolation for each method.
GET requests are now cached via wget
and the mocha test now performs filesystem reads.
Running yarn test
will first run a shell script to ensure that the required resources are downloaded, and continue the test once complete.
A solution needs to be devised for testing other http methods.