diff options
author | Phil Hughes <me@iamphill.com> | 2017-10-19 08:58:06 +0100 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-10-23 10:45:44 +0100 |
commit | 389c852d1210f07d34f2235423235a8ac1cff27b (patch) | |
tree | d047054b25831706c56c6411871707dbe4af352f /spec/javascripts/helpers | |
parent | fd67a20e2c83257e555a382ae775a2a65b2efadc (diff) | |
download | gitlab-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.js | 5 |
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); |