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:
authorFilipa Lacerda <filipa@gitlab.com>2017-08-29 15:20:58 +0300
committerFilipa Lacerda <filipa@gitlab.com>2017-08-29 16:10:10 +0300
commitefd5e533b6d45abb258501356496e1af0c112e7d (patch)
tree5280c715ee4edfe77823ac352de0a85247c7ed2e /spec/javascripts/helpers
parent1b9c318cae7f9eed1814793c553190f90cd3ab47 (diff)
Prevents rendering empty badge when pipeline request fails
Diffstat (limited to 'spec/javascripts/helpers')
-rw-r--r--spec/javascripts/helpers/vue_mount_component_helper.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/javascripts/helpers/vue_mount_component_helper.js b/spec/javascripts/helpers/vue_mount_component_helper.js
new file mode 100644
index 00000000000..d7a2e86771c
--- /dev/null
+++ b/spec/javascripts/helpers/vue_mount_component_helper.js
@@ -0,0 +1,4 @@
+export default (Component, props = {}) => new Component({
+ propsData: props,
+}).$mount();
+