arena-js icon indicating copy to clipboard operation
arena-js copied to clipboard

Better testing

Open ivangreene opened this issue 7 years ago • 1 comments

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.

ivangreene avatar Nov 28 '17 22:11 ivangreene

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.

ivangreene avatar Dec 14 '17 20:12 ivangreene