Make generic Vue mounting testing factory/helper
Make generic Vue mounting testing helper. We currently use the same pattern in all of our tests,
- https://gitlab.com/gitlab-org/gitter/webapp/blob/7984c4966f8322a319172400561f064372ff013c/test/public-js/vue/left-menu/components/index-test.js#L10-30
- https://gitlab.com/gitlab-org/gitter/webapp/blob/7984c4966f8322a319172400561f064372ff013c/test/public-js/vue/left-menu/components/menu-bar-item-test.js#L10-30
- https://gitlab.com/gitlab-org/gitter/webapp/blob/7984c4966f8322a319172400561f064372ff013c/test/public-js/vue/left-menu/components/search-body-test.js#L73-93
Because the variables are available in the outer scope it makes it really nice to reference and manipulate at any point. But we can make the factory return a map of the wrapper
and stubbedActions
and reference from there