Update test.js
Merge pull request #13 from douglascalhoun/patch-6

make riot global var available to api.js for testing