-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor tests #325
Labels
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Change the tests from using a Promise to async/await.
For inspiration check
websocket.spec.js
andaudio-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.The text was updated successfully, but these errors were encountered: