diff options
author | Winnie Hellmann <winnie@gitlab.com> | 2019-03-12 00:18:15 +0100 |
---|---|---|
committer | Winnie Hellmann <winnie@gitlab.com> | 2019-03-12 00:18:15 +0100 |
commit | ec47bdb82c1d0bf8be357b36e1068a567313094b (patch) | |
tree | e3e09421068e2027e59f18615e4bee16e5380963 /spec/javascripts/sidebar | |
parent | c5a5cae9d3b7c85808419fbacb9cd13ab0079f62 (diff) | |
download | gitlab-ce-winh-karma-vue-extend.tar.gz |
Run Prettierwinh-karma-vue-extend
Diffstat (limited to 'spec/javascripts/sidebar')
14 files changed, 15 insertions, 15 deletions
diff --git a/spec/javascripts/sidebar/assignee_title_spec.js b/spec/javascripts/sidebar/assignee_title_spec.js index c64222fd9a7..69954ed6a22 100644 --- a/spec/javascripts/sidebar/assignee_title_spec.js +++ b/spec/javascripts/sidebar/assignee_title_spec.js @@ -6,7 +6,7 @@ describe('AssigneeTitle component', () => { let AssigneeTitleComponent; beforeEach(() => { - AssigneeTitleComponent = (AssigneeTitle); + AssigneeTitleComponent = AssigneeTitle; }); describe('assignee title', () => { diff --git a/spec/javascripts/sidebar/assignees_spec.js b/spec/javascripts/sidebar/assignees_spec.js index 62f81fc16d8..5fa5ebee507 100644 --- a/spec/javascripts/sidebar/assignees_spec.js +++ b/spec/javascripts/sidebar/assignees_spec.js @@ -8,7 +8,7 @@ describe('Assignee component', () => { let AssigneeComponent; beforeEach(() => { - AssigneeComponent = (Assignee); + AssigneeComponent = Assignee; }); describe('No assignees/users', () => { diff --git a/spec/javascripts/sidebar/components/time_tracking/time_tracker_spec.js b/spec/javascripts/sidebar/components/time_tracking/time_tracker_spec.js index 4ea6fe0b058..53006e9422e 100644 --- a/spec/javascripts/sidebar/components/time_tracking/time_tracker_spec.js +++ b/spec/javascripts/sidebar/components/time_tracking/time_tracker_spec.js @@ -28,7 +28,7 @@ describe('Issuable Time Tracker', () => { rootPath: '/', }; - const TimeTrackingComponent = ({ + const TimeTrackingComponent = { ...TimeTracker, components: { ...TimeTracker.components, @@ -37,7 +37,7 @@ describe('Issuable Time Tracker', () => { template: '<div><slot></slot></div>', }, }, - }); + }; vm = mountComponent(TimeTrackingComponent, initialData, '#mock-container'); }; diff --git a/spec/javascripts/sidebar/confidential_edit_buttons_spec.js b/spec/javascripts/sidebar/confidential_edit_buttons_spec.js index 5a5d97d77e6..8e71b7507f9 100644 --- a/spec/javascripts/sidebar/confidential_edit_buttons_spec.js +++ b/spec/javascripts/sidebar/confidential_edit_buttons_spec.js @@ -6,7 +6,7 @@ describe('Edit Form Buttons', () => { let vm2; beforeEach(() => { - const Component = (editFormButtons); + const Component = editFormButtons; const toggleForm = () => {}; const updateConfidentialAttribute = () => {}; diff --git a/spec/javascripts/sidebar/confidential_edit_form_buttons_spec.js b/spec/javascripts/sidebar/confidential_edit_form_buttons_spec.js index fc221c0fdab..0e73776c72d 100644 --- a/spec/javascripts/sidebar/confidential_edit_form_buttons_spec.js +++ b/spec/javascripts/sidebar/confidential_edit_form_buttons_spec.js @@ -6,7 +6,7 @@ describe('Edit Form Dropdown', () => { let vm2; beforeEach(() => { - const Component = (editForm); + const Component = editForm; const toggleForm = () => {}; const updateConfidentialAttribute = () => {}; diff --git a/spec/javascripts/sidebar/confidential_issue_sidebar_spec.js b/spec/javascripts/sidebar/confidential_issue_sidebar_spec.js index 52ad831f38d..9f3a87be13e 100644 --- a/spec/javascripts/sidebar/confidential_issue_sidebar_spec.js +++ b/spec/javascripts/sidebar/confidential_issue_sidebar_spec.js @@ -6,7 +6,7 @@ describe('Confidential Issue Sidebar Block', () => { let vm2; beforeEach(() => { - const Component = (confidentialIssueSidebar); + const Component = confidentialIssueSidebar; const service = { update: () => Promise.resolve(true), }; diff --git a/spec/javascripts/sidebar/lock/edit_form_buttons_spec.js b/spec/javascripts/sidebar/lock/edit_form_buttons_spec.js index f6dfbf62cb2..b9656c537d6 100644 --- a/spec/javascripts/sidebar/lock/edit_form_buttons_spec.js +++ b/spec/javascripts/sidebar/lock/edit_form_buttons_spec.js @@ -7,7 +7,7 @@ describe('EditFormButtons', () => { let vm2; beforeEach(() => { - const Component = (editFormButtons); + const Component = editFormButtons; const toggleForm = () => {}; const updateLockedAttribute = () => {}; diff --git a/spec/javascripts/sidebar/lock/edit_form_spec.js b/spec/javascripts/sidebar/lock/edit_form_spec.js index bae6ee18772..a4f427791ae 100644 --- a/spec/javascripts/sidebar/lock/edit_form_spec.js +++ b/spec/javascripts/sidebar/lock/edit_form_spec.js @@ -6,7 +6,7 @@ describe('EditForm', () => { let vm2; beforeEach(() => { - const Component = (editForm); + const Component = editForm; const toggleForm = () => {}; const updateLockedAttribute = () => {}; diff --git a/spec/javascripts/sidebar/lock/lock_issue_sidebar_spec.js b/spec/javascripts/sidebar/lock/lock_issue_sidebar_spec.js index 6918c39a37e..7b8de2b4ac8 100644 --- a/spec/javascripts/sidebar/lock/lock_issue_sidebar_spec.js +++ b/spec/javascripts/sidebar/lock/lock_issue_sidebar_spec.js @@ -6,7 +6,7 @@ describe('LockIssueSidebar', () => { let vm2; beforeEach(() => { - const Component = (lockIssueSidebar); + const Component = lockIssueSidebar; const mediator = { service: { diff --git a/spec/javascripts/sidebar/participants_spec.js b/spec/javascripts/sidebar/participants_spec.js index 632bfece0e7..6d0cb71ff90 100644 --- a/spec/javascripts/sidebar/participants_spec.js +++ b/spec/javascripts/sidebar/participants_spec.js @@ -18,7 +18,7 @@ describe('Participants', function() { let Participants; beforeEach(() => { - Participants = (participants); + Participants = participants; }); afterEach(() => { diff --git a/spec/javascripts/sidebar/sidebar_assignees_spec.js b/spec/javascripts/sidebar/sidebar_assignees_spec.js index 062478472bb..71e51974835 100644 --- a/spec/javascripts/sidebar/sidebar_assignees_spec.js +++ b/spec/javascripts/sidebar/sidebar_assignees_spec.js @@ -22,7 +22,7 @@ describe('sidebar assignees', () => { spyOn(mediator, 'saveAssignees').and.callThrough(); spyOn(mediator, 'assignYourself').and.callThrough(); - const SidebarAssigneeComponent = (SidebarAssignees); + const SidebarAssigneeComponent = SidebarAssignees; sidebarAssigneesEl = document.querySelector('#js-vue-sidebar-assignees'); vm = mountComponent( SidebarAssigneeComponent, diff --git a/spec/javascripts/sidebar/sidebar_subscriptions_spec.js b/spec/javascripts/sidebar/sidebar_subscriptions_spec.js index 489b85cf532..a15b21cccb8 100644 --- a/spec/javascripts/sidebar/sidebar_subscriptions_spec.js +++ b/spec/javascripts/sidebar/sidebar_subscriptions_spec.js @@ -11,7 +11,7 @@ describe('Sidebar Subscriptions', function() { let SidebarSubscriptions; beforeEach(() => { - SidebarSubscriptions = (sidebarSubscriptions); + SidebarSubscriptions = sidebarSubscriptions; // Set up the stores, services, etc // eslint-disable-next-line no-new new SidebarMediator(Mock.mediator); diff --git a/spec/javascripts/sidebar/subscriptions_spec.js b/spec/javascripts/sidebar/subscriptions_spec.js index 70bb894ca15..9bb513de9c3 100644 --- a/spec/javascripts/sidebar/subscriptions_spec.js +++ b/spec/javascripts/sidebar/subscriptions_spec.js @@ -8,7 +8,7 @@ describe('Subscriptions', function() { let Subscriptions; beforeEach(() => { - Subscriptions = (subscriptions); + Subscriptions = subscriptions; }); afterEach(() => { diff --git a/spec/javascripts/sidebar/todo_spec.js b/spec/javascripts/sidebar/todo_spec.js index 072f5a0a0b3..feb10b9db14 100644 --- a/spec/javascripts/sidebar/todo_spec.js +++ b/spec/javascripts/sidebar/todo_spec.js @@ -10,7 +10,7 @@ const createComponent = ({ isActionActive, collapsed, }) => { - const Component = (SidebarTodos); + const Component = SidebarTodos; return mountComponent(Component, { issuableId, |