Skip to content
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 eventBus #324

Closed
TheGreatRefrigerator opened this issue Jan 26, 2023 · 0 comments · Fixed by #326
Closed

Refactor eventBus #324

TheGreatRefrigerator opened this issue Jan 26, 2023 · 0 comments · Fixed by #326
Assignees

Comments

@TheGreatRefrigerator
Copy link
Collaborator

TheGreatRefrigerator commented Jan 26, 2023

Currently, the eventBus is attached to the vue instance which only makes it usable in specific scopes or requires the passing of those to the next scope (e.g. to promise).
During testing it is not usable consistently (exists e.g. during MapView component testing but doesn't during App component testing.).

Should be refactored to be a standalone common module, that can be imported on demand and directly be used.
Enables consistent testing using cypress spies.

To do:
Implementation similar to https://www.digitalocean.com/community/tutorials/vuejs-global-event-bus
and replacement of *.eventBus.* with EventBus.* (+ import)

TheGreatRefrigerator added a commit that referenced this issue Jan 26, 2023
- remove unused lines from map-view.js that conflict with test, as
  the translation returned is a string instead of an object
- contains code to be uncommented or adjusted after #324
  has been dealt with
- remove old spec
TheGreatRefrigerator added a commit that referenced this issue Jan 27, 2023
- remove unused lines from map-view.js that conflict with test, as
  the translation returned is a string instead of an object
- contains code to be uncommented or adjusted after #324
  has been dealt with
- remove old spec
TheGreatRefrigerator added a commit that referenced this issue Jan 27, 2023
- remove unused lines from map-view.js that conflict with test, as
  the translation returned is a string instead of an object
- contains code to be uncommented or adjusted after #324
  has been dealt with
- remove old spec
koebi added a commit that referenced this issue Jan 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants