Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2017-10-27 20:16:28 +0300
committerPhil Hughes <me@iamphill.com>2017-10-27 20:16:28 +0300
commit47c906eb57d95eacd336aa89541f8a7071b746bf (patch)
treeb0dd0f92ec5a80ce4784b2af9de87d72ea7519e3 /spec/javascripts/helpers
parent3811fbff7a5837bf8c7e2667c1fc1a10ed544e20 (diff)
updated karma specs
Diffstat (limited to 'spec/javascripts/helpers')
-rw-r--r--spec/javascripts/helpers/vue_mount_component_helper.js5
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);