Change the tests from using a Promise to async/await.
For inspiration check websocket.spec.js and audio-over-socket.spec.js.
In addition, current tests still fail sometimes and it is unclear why. It seems to be realted to promises.
It could be useful to get some ideas by this article: http://2ality.com/2016/04/unhandled-rejections.html
We could for instance add a beforeEach that handles the unhandledrejection event.
Change the tests from using a Promise to async/await.
For inspiration check
websocket.spec.jsandaudio-over-socket.spec.js.In addition, current tests still fail sometimes and it is unclear why. It seems to be realted to promises.
It could be useful to get some ideas by this article: http://2ality.com/2016/04/unhandled-rejections.html
We could for instance add a beforeEach that handles the
unhandledrejectionevent.