summaryrefslogtreecommitdiff
path: root/spec/javascripts/deploy_keys
diff options
context:
space:
mode:
authorgfyoung <gfyoung17@gmail.com>2018-06-16 14:50:13 -0700
committergfyoung <gfyoung17@gmail.com>2018-06-25 11:53:57 -0700
commit23cdae8eee4fb2017399f54ee0373367fd915e63 (patch)
treeaf797d46be6b0a7a3194d3d797e32bacbacc791f /spec/javascripts/deploy_keys
parentd38eb9bb2668afe8ddd2976490c669b8de4c507e (diff)
downloadgitlab-ce-23cdae8eee4fb2017399f54ee0373367fd915e63.tar.gz
Enable "prefer-destructuring" in JS files
Partially addresses #47006.
Diffstat (limited to 'spec/javascripts/deploy_keys')
-rw-r--r--spec/javascripts/deploy_keys/components/key_spec.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/javascripts/deploy_keys/components/key_spec.js b/spec/javascripts/deploy_keys/components/key_spec.js
index 4279add21d1..d1de9d132b8 100644
--- a/spec/javascripts/deploy_keys/components/key_spec.js
+++ b/spec/javascripts/deploy_keys/components/key_spec.js
@@ -88,7 +88,7 @@ describe('Deploy keys key', () => {
});
it('expands all project labels after click', done => {
- const length = vm.deployKey.deploy_keys_projects.length;
+ const { length } = vm.deployKey.deploy_keys_projects;
vm.$el.querySelectorAll('.deploy-project-label')[1].click();
Vue.nextTick(() => {