summaryrefslogtreecommitdiff
path: root/spec/javascripts/helpers
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2017-10-19 08:58:06 +0100
committerPhil Hughes <me@iamphill.com>2017-10-23 10:45:44 +0100
commit389c852d1210f07d34f2235423235a8ac1cff27b (patch)
treed047054b25831706c56c6411871707dbe4af352f /spec/javascripts/helpers
parentfd67a20e2c83257e555a382ae775a2a65b2efadc (diff)
downloadgitlab-ce-389c852d1210f07d34f2235423235a8ac1cff27b.tar.gz
correctly creates file in currently viewed directory
specs
Diffstat (limited to 'spec/javascripts/helpers')
-rw-r--r--spec/javascripts/helpers/vue_mount_component_helper.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/spec/javascripts/helpers/vue_mount_component_helper.js b/spec/javascripts/helpers/vue_mount_component_helper.js
index d7a2e86771c..b71136c4114 100644
--- a/spec/javascripts/helpers/vue_mount_component_helper.js
+++ b/spec/javascripts/helpers/vue_mount_component_helper.js
@@ -1,4 +1,3 @@
-export default (Component, props = {}) => new Component({
+export default (Component, props = {}, el = null) => new Component({
propsData: props,
-}).$mount();
-
+}).$mount(el);