From 5838993b5f3e2d861d9dd7c82dfeea71506b9fc2 Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Wed, 23 Dec 2020 21:10:24 +0000 Subject: Add latest changes from gitlab-org/gitlab@master --- spec/frontend/snippet/collapsible_input_spec.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'spec/frontend/snippet') diff --git a/spec/frontend/snippet/collapsible_input_spec.js b/spec/frontend/snippet/collapsible_input_spec.js index aa017964437..3f14a9cd1a1 100644 --- a/spec/frontend/snippet/collapsible_input_spec.js +++ b/spec/frontend/snippet/collapsible_input_spec.js @@ -38,12 +38,12 @@ describe('~/snippet/collapsible_input', () => { setupCollapsibleInputs(); }); - const findInput = el => el.querySelector('textarea,input'); - const findCollapsed = el => el.querySelector('.js-collapsed'); - const findExpanded = el => el.querySelector('.js-expanded'); - const findCollapsedInput = el => findInput(findCollapsed(el)); - const findExpandedInput = el => findInput(findExpanded(el)); - const focusIn = target => target.dispatchEvent(new Event('focusin', { bubbles: true })); + const findInput = (el) => el.querySelector('textarea,input'); + const findCollapsed = (el) => el.querySelector('.js-collapsed'); + const findExpanded = (el) => el.querySelector('.js-expanded'); + const findCollapsedInput = (el) => findInput(findCollapsed(el)); + const findExpandedInput = (el) => findInput(findExpanded(el)); + const focusIn = (target) => target.dispatchEvent(new Event('focusin', { bubbles: true })); const expectIsCollapsed = (el, isCollapsed) => { expect(findCollapsed(el).classList.contains('d-none')).toEqual(!isCollapsed); expect(findExpanded(el).classList.contains('d-none')).toEqual(isCollapsed); -- cgit v1.2.3