You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 22, 2023. It is now read-only.
Currently the event bus mock is initialized with a window.Promise based wrapper, which is compatible to $q. This makes all promises of the event bus asynchronous and by that the tests will be evaluated before the promises are resolved. Hence those tests will likely fail.
Instead (for now) the real $q should be used. This is properly mocked by angular and will be flushed on every $digest cycle. The only smell introduced with that approach is, that non-angular widgets will depend on a $digest. This is okay for now, since LaxarJS < 2.0 is still built upon AngularJS.
The text was updated successfully, but these errors were encountered:
Currently the event bus mock is initialized with a
window.Promise
based wrapper, which is compatible to$q
. This makes all promises of the event bus asynchronous and by that the tests will be evaluated before the promises are resolved. Hence those tests will likely fail.Instead (for now) the real
$q
should be used. This is properly mocked by angular and will be flushed on every $digest cycle. The only smell introduced with that approach is, that non-angular widgets will depend on a $digest. This is okay for now, since LaxarJS < 2.0 is still built upon AngularJS.The text was updated successfully, but these errors were encountered: