diff options
author | Phil Hughes <me@iamphill.com> | 2017-10-27 20:16:28 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-10-27 20:16:28 +0300 |
commit | 47c906eb57d95eacd336aa89541f8a7071b746bf (patch) | |
tree | b0dd0f92ec5a80ce4784b2af9de87d72ea7519e3 /spec/javascripts/helpers | |
parent | 3811fbff7a5837bf8c7e2667c1fc1a10ed544e20 (diff) |
updated karma specs
Diffstat (limited to 'spec/javascripts/helpers')
-rw-r--r-- | spec/javascripts/helpers/vue_mount_component_helper.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/javascripts/helpers/vue_mount_component_helper.js b/spec/javascripts/helpers/vue_mount_component_helper.js index b71136c4114..34acdfbfba9 100644 --- a/spec/javascripts/helpers/vue_mount_component_helper.js +++ b/spec/javascripts/helpers/vue_mount_component_helper.js @@ -1,3 +1,8 @@ +export const createComponentWithStore = (Component, store, propsData = {}) => new Component({ + store, + propsData, +}); + export default (Component, props = {}, el = null) => new Component({ propsData: props, }).$mount(el); |