diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-04-14 09:18:27 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-04-14 09:18:27 +0300 |
commit | c192f26df39e9a2ab122c2d097b86e461599bde8 (patch) | |
tree | 405f7ce164bcf33ce178699048b137a8712990a0 /spec/frontend/work_items | |
parent | 361def36660a93176d8cb32fb47412dbb1100c2b (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/work_items')
7 files changed, 8 insertions, 8 deletions
diff --git a/spec/frontend/work_items/components/item_title_spec.js b/spec/frontend/work_items/components/item_title_spec.js index aef310319ab..3a84ba4bd5e 100644 --- a/spec/frontend/work_items/components/item_title_spec.js +++ b/spec/frontend/work_items/components/item_title_spec.js @@ -47,7 +47,7 @@ describe('ItemTitle', () => { expect(wrapper.emitted(eventName)).toBeDefined(); }); - it('renders only the text content from clipboard', async () => { + it('renders only the text content from clipboard', () => { const htmlContent = '<strong>bold text</strong>'; const buildClipboardData = (data = {}) => ({ clipboardData: { diff --git a/spec/frontend/work_items/components/notes/work_item_comment_form_spec.js b/spec/frontend/work_items/components/notes/work_item_comment_form_spec.js index 87db3d4573b..147f2904761 100644 --- a/spec/frontend/work_items/components/notes/work_item_comment_form_spec.js +++ b/spec/frontend/work_items/components/notes/work_item_comment_form_spec.js @@ -128,7 +128,7 @@ describe('Work item comment form component', () => { expect(findMarkdownEditor().props('value')).toBe('new comment'); }); - it('calls `updateDraft` with correct parameters', async () => { + it('calls `updateDraft` with correct parameters', () => { findMarkdownEditor().vm.$emit('input', 'new comment'); expect(autosave.updateDraft).toHaveBeenCalledWith(mockAutosaveKey, 'new comment'); diff --git a/spec/frontend/work_items/components/notes/work_item_discussion_spec.js b/spec/frontend/work_items/components/notes/work_item_discussion_spec.js index 1255e3b549a..568b76150c4 100644 --- a/spec/frontend/work_items/components/notes/work_item_discussion_spec.js +++ b/spec/frontend/work_items/components/notes/work_item_discussion_spec.js @@ -72,7 +72,7 @@ describe('Work Item Discussion', () => { expect(findToggleRepliesWidget().exists()).toBe(true); }); - it('the number of threads should be equal to the response length', async () => { + it('the number of threads should be equal to the response length', () => { expect(findAllThreads()).toHaveLength( mockWorkItemNotesWidgetResponseWithComments.discussions.nodes[0].notes.nodes.length, ); @@ -106,7 +106,7 @@ describe('Work Item Discussion', () => { await findWorkItemAddNote().vm.$emit('replying', 'reply text'); }); - it('should show optimistic behavior when replying', async () => { + it('should show optimistic behavior when replying', () => { expect(findAllThreads()).toHaveLength(2); expect(findWorkItemNoteReplying().exists()).toBe(true); }); diff --git a/spec/frontend/work_items/components/work_item_assignees_spec.js b/spec/frontend/work_items/components/work_item_assignees_spec.js index 2a8159f7294..af97b3680f9 100644 --- a/spec/frontend/work_items/components/work_item_assignees_spec.js +++ b/spec/frontend/work_items/components/work_item_assignees_spec.js @@ -318,7 +318,7 @@ describe('WorkItemAssignees component', () => { return waitForPromises(); }); - it('renders `Assign myself` button', async () => { + it('renders `Assign myself` button', () => { findTokenSelector().trigger('mouseover'); expect(findAssignSelfButton().exists()).toBe(true); }); diff --git a/spec/frontend/work_items/components/work_item_detail_spec.js b/spec/frontend/work_items/components/work_item_detail_spec.js index dee781209ac..9d0a2344356 100644 --- a/spec/frontend/work_items/components/work_item_detail_spec.js +++ b/spec/frontend/work_items/components/work_item_detail_spec.js @@ -408,7 +408,7 @@ describe('WorkItemDetail component', () => { expect(findParent().exists()).toBe(true); }); - it('does not show work item type', async () => { + it('does not show work item type', () => { expect(findWorkItemType().exists()).toBe(false); }); diff --git a/spec/frontend/work_items/components/work_item_links/work_item_links_menu_spec.js b/spec/frontend/work_items/components/work_item_links/work_item_links_menu_spec.js index 4e53fc2987b..f02a9fbd021 100644 --- a/spec/frontend/work_items/components/work_item_links/work_item_links_menu_spec.js +++ b/spec/frontend/work_items/components/work_item_links/work_item_links_menu_spec.js @@ -13,7 +13,7 @@ describe('WorkItemLinksMenu', () => { const findDropdown = () => wrapper.findComponent(GlDropdown); const findRemoveDropdownItem = () => wrapper.findComponent(GlDropdownItem); - beforeEach(async () => { + beforeEach(() => { createComponent(); }); diff --git a/spec/frontend/work_items/components/work_item_notes_spec.js b/spec/frontend/work_items/components/work_item_notes_spec.js index 68ba8fb43a1..3cc6a9813fc 100644 --- a/spec/frontend/work_items/components/work_item_notes_spec.js +++ b/spec/frontend/work_items/components/work_item_notes_spec.js @@ -123,7 +123,7 @@ describe('WorkItemNotes component', () => { }); }; - beforeEach(async () => { + beforeEach(() => { createComponent(); }); |