Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/frontend/work_items/components/work_item_detail_modal_spec.js')
-rw-r--r--spec/frontend/work_items/components/work_item_detail_modal_spec.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/spec/frontend/work_items/components/work_item_detail_modal_spec.js b/spec/frontend/work_items/components/work_item_detail_modal_spec.js
index 8976cd6e22b..938cf6e6f51 100644
--- a/spec/frontend/work_items/components/work_item_detail_modal_spec.js
+++ b/spec/frontend/work_items/components/work_item_detail_modal_spec.js
@@ -136,10 +136,14 @@ describe('WorkItemDetailModal component', () => {
it('updates the work item when WorkItemDetail emits `update-modal` event', async () => {
createComponent();
- findWorkItemDetail().vm.$emit('update-modal', null, 'updatedId');
+ findWorkItemDetail().vm.$emit('update-modal', undefined, {
+ id: 'updatedId',
+ iid: 'updatedIid',
+ });
await waitForPromises();
expect(findWorkItemDetail().props().workItemId).toEqual('updatedId');
+ expect(findWorkItemDetail().props().workItemIid).toEqual('updatedIid');
});
describe('delete work item', () => {