opentok
opentok copied to clipboard
Remove leaking global variables
When running tests using 'mocha' it discovered leaking global variables. Simply scoping the variables should do the trick. In addition the call to hmac.digest was incorrect, this is fixed according to the node 8.15 method signature.
Tests ran the same as before, though I am seeing an error for getId() in the video archive test. This happened before I made any changes.