diff options
author | Filipa Lacerda <filipa@gitlab.com> | 2018-01-05 16:12:23 +0300 |
---|---|---|
committer | Filipa Lacerda <filipa@gitlab.com> | 2018-01-05 16:12:23 +0300 |
commit | 47e5a7f8e3c3a16bb8803f5156a65febf614f467 (patch) | |
tree | b0a5f7d8f596750503feac86eaa76b4883202337 /spec/javascripts/groups | |
parent | 396e7647f836c0cb87d19252fb6d31e91e0dbd6c (diff) | |
parent | 2c47f0924fc5534035905746046ab0f5e9c99f23 (diff) |
Merge branch 'winh-modal-target-id' into 'master'
Add id to modal.vue to support data-toggle="modal"
Closes #41584
See merge request gitlab-org/gitlab-ce!16189
Diffstat (limited to 'spec/javascripts/groups')
-rw-r--r-- | spec/javascripts/groups/components/item_actions_spec.js | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/spec/javascripts/groups/components/item_actions_spec.js b/spec/javascripts/groups/components/item_actions_spec.js index 7a5c1da4d1d..6d6fb410859 100644 --- a/spec/javascripts/groups/components/item_actions_spec.js +++ b/spec/javascripts/groups/components/item_actions_spec.js @@ -47,17 +47,11 @@ describe('ItemActionsComponent', () => { it('should change `modalStatus` prop to `false` and emit `leaveGroup` event with required params when called with `leaveConfirmed` as `true`', () => { spyOn(eventHub, '$emit'); vm.modalStatus = true; - vm.leaveGroup(true); - expect(vm.modalStatus).toBeFalsy(); - expect(eventHub.$emit).toHaveBeenCalledWith('leaveGroup', vm.group, vm.parentGroup); - }); - it('should change `modalStatus` prop to `false` and should NOT emit `leaveGroup` event when called with `leaveConfirmed` as `false`', () => { - spyOn(eventHub, '$emit'); - vm.modalStatus = true; - vm.leaveGroup(false); + vm.leaveGroup(); + expect(vm.modalStatus).toBeFalsy(); - expect(eventHub.$emit).not.toHaveBeenCalled(); + expect(eventHub.$emit).toHaveBeenCalledWith('leaveGroup', vm.group, vm.parentGroup); }); }); }); |