whortaneto / chimera-js

Javascript library to facilitate the use of the web workers api.
MIT License
4 stars 0 forks source link

Configure unit test environment to run web worker global functions #1

Open whortaneto opened 7 years ago

whortaneto commented 7 years ago

The functions accessed by the WorkerGlobalScope aren't defined in the unit test environment.

That probably can be fixed using Karma.


onmessage = function onmessage(e) {
          ^

ReferenceError: onmessage is not defined