Skip to content

Refactor tests #325

@joggienl

Description

@joggienl

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions